decode

Function decode 

Source
pub fn decode(data: &[u8]) -> Result<(Vec<Color>, u32, u32), DecodingError>
Expand description

Decode a PNG image into a vector of RGB Colors and return dimensions.

Any alpha channel present in the source image is composited against a black background before being converted to Color.