Function cosmic::iced_winit::graphics::image::image_rs::load_from_memory
source ยท pub fn load_from_memory(buffer: &[u8]) -> Result<DynamicImage, ImageError>
Expand description
Create a new image from a byte slice
Makes an educated guess about the image format. TGA is not supported by this function.
Try io::Reader
for more advanced uses.