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 theRead
trait.demultiply
- Whether or not to demultiply the PNG.