Function rerun::external::image::load

pub fn load<R>(r: R, format: ImageFormat) -> Result<DynamicImage, ImageError>
where R: BufRead + Seek,
Expand description

Create a new image from a Reader.

Assumes the reader is already buffered. For optimal performance, consider wrapping the reader with a BufReader::new().

Try ImageReader for more advanced uses.