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.
pub fn encode(
pixels: &Pixels,
width: u32,
height: u32,
format: ImageFormat,
) -> Result<Vec<u8>, ImageIoError>A width × height image as a file; Pixels::into_rgb first for colour.