Skip to main content

encode_image

Function encode_image 

Source
pub fn encode_image(
    data: &[u8],
    width: u32,
    height: u32,
    format: ImageFormat,
) -> Result<Bytes, RenderError>
Expand description

Encode RGBA data to the specified format