Skip to main content

image_from_pixels

Function image_from_pixels 

Source
pub fn image_from_pixels(
    mode: Mode,
    width: u32,
    height: u32,
    data: &[u8],
    meter: &Arc<Meter>,
) -> Result<Image, DecodeError>
Expand description

Copy already ordered pixels into a charged image, validating its length.