Skip to main content

encode

Function encode 

Source
pub fn encode(
    pixels: &Pixels,
    width: u32,
    height: u32,
    format: ImageFormat,
) -> Result<Vec<u8>, ImageIoError>
Expand description

A width × height image as a file; Pixels::into_rgb first for colour.