Function imagefmt::write_png [] [src]

pub fn write_png<W: Write>(writer: &mut W, w: usize, h: usize, src_fmt: ColFmt, data: &[u8], tgt_type: ColType) -> Result<()>

Writes an image and converts it to requested color type.