Function decode_png

Source
pub fn decode_png(
    readable_stream: impl Read,
    demultiply: bool,
) -> Result<ImageBuffer<Rgba<u8>, Vec<u8>>, PConvertError>
Expand description

Decodes and returns a PNG.

ยงArguments

  • readable_stream - Any structure that implements the Read trait.
  • demultiply - Whether or not to demultiply the PNG.