Function termimage::ops::load_image

source ·
pub fn load_image(
    file: &(String, PathBuf),
    format: ImageFormat
) -> Result<DynamicImage, Error>
Expand description

Load an image from the specified file as the specified format.

Get the image fromat with guess_format().