Function imagefmt::read_png_chunks [] [src]

pub fn read_png_chunks<R: Read>(reader: &mut R, req_fmt: ColFmt, chunk_names: &[[u8; 4]]) -> Result<(Image, Vec<PngCustomChunk>)>

Like read_png but also returns the requested extension chunks.

If the requested chunks are not present they are ignored.