Function image::load_from_memory

source ·
pub fn load_from_memory(buffer: &[u8]) -> ImageResult<DynamicImage>
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 ImageReader for more advanced uses.