Crate lodepng [−] [src]
Reexports
pub use ffi::State; |
pub use ffi::ColorType; |
pub use ffi::CompressSettings; |
pub use ffi::DecompressSettings; |
pub use ffi::Time; |
pub use ffi::DecoderSettings; |
pub use ffi::FilterStrategy; |
pub use ffi::EncoderSettings; |
pub use ffi::Error; |
pub use ffi::Info; |
pub use ffi::ColorMode; |
Modules
ffi |
Structs
Bitmap |
Low-level representation of an image |
ChunkRef |
Reference to a chunk |
ChunkRefMut | |
Grey |
Opaque greyscale pixel (acces with |
GreyAlpha |
Greyscale pixel with alpha ( |
RGB |
The RGB pixel |
Enums
ChunkPosition |
Position in the file section after… |
Image |
Bitmap types. |
Functions
decode24 |
Same as |
decode32 |
Same as |
decode24_file |
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 |
encode32 |
Same as |
encode24_file |
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. |
Type Definitions
RGBA |
8-bit RGBA, alpha is last |