pub fn load<R>(r: R, format: ImageFormat) -> Result<DynamicImage, ImageError>
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 io::Reader
for more advanced uses.