Skip to main content

png_pixels

Function png_pixels 

Source
pub fn png_pixels(bytes: &[u8]) -> Result<(u32, u32, Vec<u8>), String>
Expand description

PNG file bytes as a colour picture: its width, height and RGBA pixels (Rgba::new), whatever kind of PNG it is (palette, grey, with or without alpha, 16 bits a channel).