Function cosmic::iced_winit::graphics::image::image_rs::load

source ยท
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 io::Reader for more advanced uses.