Skip to main content

encode_png

Function encode_png 

Source
pub fn encode_png(
    rgba: &[u8],
    width: u32,
    height: u32,
) -> Result<Vec<u8>, EncodingError>
Expand description

Encode tightly packed width * height RGBA8 pixels as a PNG byte stream.