Skip to main content

reader_type

Function reader_type 

Source
pub fn reader_type<R: BufRead + Seek>(reader: R) -> ImageResult<ImageType>
Expand description

Get the image type from a reader

§Arguments

  • reader - A reader for the data

§Remarks

This will check the header to determine what image type the data is.