Function encode_rgba8
pub fn encode_rgba8(
width: u32,
height: u32,
rgba: &[u8],
) -> Result<Vec<u8>, ImageError>Expand description
Encode rgba (width * height * 4 bytes, row-major) as a PNG.
ยงErrors
Fails when the dimensions do not match the buffer length or are zero.