[−][src]Crate lodepng
Re-exports
pub use crate::ffi::State; |
pub use crate::ffi::ColorType; |
pub use crate::ffi::CompressSettings; |
pub use crate::ffi::DecompressSettings; |
pub use crate::ffi::Time; |
pub use crate::ffi::DecoderSettings; |
pub use crate::ffi::FilterStrategy; |
pub use crate::ffi::EncoderSettings; |
pub use crate::ffi::Error; |
pub use crate::ffi::Info; |
pub use crate::ffi::ColorMode; |
Modules
ffi |
Structs
Bitmap | Low-level representation of an image |
ChunkRef | Reference to a chunk |
ChunkRefMut | |
Decoder | Read an image with custom settings |
Encoder | Make an image with custom settings |
Grey | Grayscale. Use |
GreyAlpha | Grayscale with alpha. Use |
RGB | The RGB pixel |
Enums
ChunkPosition | Position in the file section after… |
Image | Bitmap types. |
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. |
Type Definitions
RGBA | 8-bit RGBA, alpha is last. 0 = transparent, 255 = opaque. |