Expand description
Netpbm P5 (binary PGM) encoder.
PGM stores 8-bit grayscale pixels. Only Gray8 / Mono8 bitmaps are
accepted; all other modes return EncodeError::UnsupportedMode.
The output is a standard P5 header followed by raw luminance bytes.
Functionsยง
- write_
pgm - Write
bitmaptooutas a binary PGM (P5) image.