Skip to main content

Module pgm

Module pgm 

Source
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 bitmap to out as a binary PGM (P5) image.