Function lodepng::decode_memory [] [src]

pub fn decode_memory<Bytes: AsRef<[u8]>>(
    input: Bytes,
    colortype: ColorType,
    bitdepth: c_uint
) -> Result<Image, Error>

Converts PNG data in memory to raw pixel data.

decode32 and decode24 are more convenient if you want specific image format.

See State::decode() for advanced decoding.