Function imagefmt::read [] [src]

pub fn read<P: AsRef<Path>>(filepath: P, req_fmt: ColFmt) -> Result<Image<u8>>

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.