pub fn decode_img(typ: ImageOutputType, filename: &str) -> Result<ImageData>
Available on crate feature
image
only.Expand description
Decodes an image from the specified file path and returns its data.
typ
- The type of the image to decode.filename
- The path of the file to decode.