Function imagefmt::convert [] [src]

pub fn convert(w: usize, h: usize, src_fmt: ColFmt, data: &[u8], tgt_fmt: ColFmt) -> Result<Image, &str>

Converts the image into a new allocation.