Function imagefmt::jpeg::read
[−]
[src]
pub fn read<R: Read + Seek>(
reader: &mut R,
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 Y
or RGB
.