Crate lodepng [−] [src]
Reexports
pub use ffi::ColorType; |
pub use ffi::ColorType::{LCT_GREY, LCT_RGB, LCT_PALETTE, LCT_GREY_ALPHA, LCT_RGBA}; |
pub use ffi::CompressSettings; |
pub use ffi::Time; |
pub use ffi::DecoderSettings; |
pub use ffi::FilterStrategy; |
pub use ffi::FilterStrategy::{LFS_ZERO, LFS_MINSUM, LFS_ENTROPY, LFS_BRUTE_FORCE, LFS_PREDEFINED}; |
pub use ffi::AutoConvert; |
pub use ffi::AutoConvert::{LAC_NO, LAC_ALPHA, LAC_AUTO, LAC_AUTO_NO_NIBBLES, LAC_AUTO_NO_PALETTE, LAC_AUTO_NO_NIBBLES_NO_PALETTE}; |
pub use ffi::EncoderSettings; |
pub use ffi::Error; |
Modules
ffi |
Structs
Bitmap |
Low-level representation of an image |
Chunk | |
ColorMode | |
Grey |
Opaque greyscale pixel (acces with |
GreyAlpha |
Greyscale pixel with alpha ( |
Info | |
RGB | |
RGBA | |
State |
Enums
Image |
Bitmap types. Also contains valid values for |
Functions
auto_choose_color |
Automatically chooses color type that gives smallest amount of bits in the output image, e.g. grey if there are only greyscale pixels, palette if there are less than 256 colors, ... |
convert |
Converts from any color type to 24-bit or 32-bit (only) |
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. |
deflate |
Compress a buffer with deflate. See RFC 1951. |
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. |
zlib_compress |
Compresses data with Zlib. Zlib adds a small header and trailer around the deflate data. The data is output in the format of the zlib specification. |