pub fn info(&self) -> Option<ImageInfo> {
        match self.frame {
            Some(ref frame) => {
                let pixel_format = match frame.components.len() {
                    1 => PixelFormat::L8,
                    3 => PixelFormat::RGB24,
                    4 => PixelFormat::CMYK32,
                    _ => panic!(),
                };

                Some(ImageInfo {
                    width: frame.output_size.width,
                    height: frame.output_size.height,
                    pixel_format: pixel_format,
                })
            }
            None => None,
        }
    }
/// Returns metadata about the image.
///
/// The returned value will be `None` until a call to either `read_info` or `decode` has
/// returned `Ok`.
Returns metadata about the image.
Returns metadata about the image .
pub fn info(&self) -> Option<ImageInfo> {
        match self.frame {
            Some(ref frame) => {
                let pixel_format = match frame.components.len() {
                    1 => PixelFormat::L8,
                    3 => PixelFormat::RGB24,
                    4 => PixelFormat::CMYK32,
                    _ => panic!(),
                };
                Some(ImageInfo {
                    width: frame.output_size.width,
                    height: frame.output_size.height,
                    pixel_format: pixel_format,
                })
            }
            None => None,
        }
    }
pub fn info ( & self ) -> Option < ImageInfo > { match self . frame { Some ( ref frame ) => { let pixel_format = match frame . components . len ( ) { 1 => PixelFormat :: L8 , 3 => PixelFormat :: RGB24 , 4 => PixelFormat :: CMYK32 , _ => panic ! ( ) , } ; Some ( ImageInfo { width : frame . output_size . width , height : frame . output_size . height , pixel_format : pixel_format , } ) } None => None , } }
Returns metadata about the image.
Returns metadata about the image .
&self