Function load

pub fn load<R>(r: R, format: ImageFormat) -> Result<DynamicImage, ImageError> 
where R: BufRead + Seek,
Available on crate feature dep_image only.
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.