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