Function image_to_bytes

Source
pub fn image_to_bytes(
    image: &DynamicImage,
    format: TextureFormat,
) -> Result<Vec<u8>>
Expand description

Convert a dynamic image to bytes based on format