Expand description
micro_png
Examples: https://github.com/js29a/micro_png/wiki
Structs
- APNG builder structure. For explanations see build_apng.
- Image structure - output data of read_png / read_png_u8.
Enums
- Color type.
- Filter mode.
- Grayscale bits count (see ImageData::GRAY and ImageData::GRAYA).
- Image data. Input for write_apng. For loaded image can be accessed using Image::raw.
- Palette type (see ImageData::NDX and ImageData::NDXA).
Functions
- Create image file using builder.
- Create (A)PNG binary using builder. Output:
Vec<u8>
. - Read png file.
- Decode PNG. For explanations see read_png. Input:
&[u8]
. - Write (A)PNG file.
- Generate APNG bytes. For explanations see write_apng. Output:
Vec<u8>
.
Type Aliases
- Write progress callback.
- Palette index.
- RGB 8 bits.
- RGB 16 bits - HDR.
- RGB + Alpha 8 bits.
- RGB + Alpha 16 bits - HDR.