GitHub project page

Function lodepng::convert [-]  [+] [src]

pub fn convert<PixelType>(input: &[PixelType], mode_out: &mut ColorMode, mode_in: &ColorMode, w: usize, h: usize, fix_png: bool) -> Result<Image, Error>

Converts from any color type to 24-bit or 32-bit (only)