cosmic::iced::advanced::graphics::image::image_rs

Function 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.