Expand description
PNG encoder (via the png crate).
Supports Rgb8, Gray8, and Rgba8 bitmaps directly.
Other modes return EncodeError::UnsupportedMode — convert to one
of the above before encoding.
PNG is lossless and handles transparency (alpha plane) correctly. Use this format in preference to PPM when the bitmap has an alpha plane.
Functions§
- write_
png - Write
bitmaptooutas a PNG image.