Skip to main content

encode_ppm

Function encode_ppm 

Source
pub fn encode_ppm(
    pixels: &[u8],
    width: u32,
    height: u32,
    layout: PixelLayout,
    stop: impl Stop,
) -> Result<Vec<u8>, PnmError>
Expand description

Encode pixels as PPM (P6, binary RGB).