Function imagefmt::read_tga [] [src]

pub fn read_tga<R: Read>(reader: &mut R, req_fmt: ColFmt) -> Result<Image>

Reads an image and converts it to requested format.

Passing ColFmt::Auto as req_fmt converts the data to one of Y, YA, RGB, RGBA.