pub fn decode(bytes: &[u8]) -> Result<Rgba, String>Expand description
Decode bytes as a PNG.
ยงErrors
Returns an error when bytes is not a PNG, is truncated or corrupt, or uses a color type, bit
depth or interlacing this decoder does not support.