Skip to main content

decode_image

Function decode_image 

Source
pub fn decode_image(bytes: &[u8]) -> Option<RgbaImage>
Expand description

Decode encoded bytes (PNG, JPEG, GIF, WebP, BMP, TIFF; WMF and EMF drawn at [crate::metafile::DEFAULT_SIDE]) to straight RGBA.