Expand description
micro_png
Examples: https://github.com/js29a/micro_png/wiki
Structs§
- APNG
Builder - APNG builder structure. For explanations see build_apng.
- Image
- Image structure - output data of read_png / read_png_u8.
Enums§
- Color
Type - Color type.
- Filter
- Filter mode.
- Grayscale
- Grayscale bits count (see ImageData::GRAY and ImageData::GRAYA).
- Image
Data - Image data. Input for write_apng. For loaded image can be accessed using Image::raw.
- Palette
- Palette type (see ImageData::NDX and ImageData::NDXA).
Functions§
- build_
apng - Create image file using builder.
- build_
apng_ u8 - Create (A)PNG binary using builder. Output:
Vec<u8>. - read_
png - Read png file.
- read_
png_ u8 - Decode PNG. For explanations see read_png. Input:
&[u8]. - write_
apng - Write (A)PNG file.
- write_
apng_ u8 - Generate APNG bytes. For explanations see write_apng. Output:
Vec<u8>.