Crate lodepng [−] [src]
Reexports
pub use ffi::ColorType; |
pub use ffi::CompressSettings; |
pub use ffi::Time; |
pub use ffi::DecoderSettings; |
pub use ffi::FilterStrategy; |
pub use ffi::AutoConvert; |
pub use ffi::EncoderSettings; |
pub use ffi::Error; |
pub use ffi::Info; |
Modules
ffi |
Structs
Bitmap |
Low-level representation of an image |
Chunk | |
Chunks | |
ColorMode | |
Grey |
Opaque greyscale pixel (acces with |
GreyAlpha |
Greyscale pixel with alpha ( |
RGB | |
RGBA | |
State |
Enums
ChunkPosition |
Position in the file section after… |
Image |
Bitmap types. Also contains valid values for |
Functions
decode24 |
Same as |
decode24_file |
Same as |
decode32 |
Same as |
decode32_file |
Same as |
decode_file |
Load PNG from disk, from file with given name. Same as the other decode functions, but instead takes a file path as input. |
decode_memory |
Converts PNG data in memory to raw pixel data. |
encode24 |
Same as |
encode24_file |
Same as |
encode32 |
Same as |
encode32_file |
Same as |
encode_file |
Converts raw pixel data into a PNG file on disk. Same as the other encode functions, but instead takes a file path as output. |
encode_memory |
Converts raw pixel data into a PNG image in memory. The colortype and bitdepth of the output PNG image cannot be chosen, they are automatically determined by the colortype, bitdepth and content of the input pixel data. |