Function pconvert_rust::utils::decode_png [−][src]
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 theReadtrait.demultiply- Whether or not to demultiply the PNG.