Crate micro_png

Crate micro_png 

Source
Expand description

Structs§

APNGBuilder
APNG builder structure. For explanations see build_apng.
Image
Image structure - output data of read_png / read_png_u8.

Enums§

ColorType
Color type.
Filter
Filter mode.
Grayscale
Grayscale bits count (see ImageData::GRAY and ImageData::GRAYA).
ImageData
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>.

Type Aliases§

APNGProgress
Write progress callback.
NDX
Palette index.
RGB
RGB 8 bits.
RGB16
RGB 16 bits - HDR.
RGBA
RGB + Alpha 8 bits.
RGBA16
RGB + Alpha 16 bits - HDR.