Struct PnmDecoder
pub struct PnmDecoder<R> { /* private fields */ }
PNM decoder
Implementations
impl<R: Read> PnmDecoder<R>
fn new(buffered_read: R) -> ImageResult<PnmDecoder<R>>Create a new decoder that decodes from the stream
readfn header(&self) -> &PnmHeaderGet the header of the decoded image.
fn into_inner(self) -> (R, PnmHeader)Extract the reader and header after an image has been read.
impl<R: Read> PnmDecoder<R>
fn subtype(&self) -> PnmSubtypeGet the pnm subtype, depending on the magic constant contained in the header
Trait Implementations
impl<R: Read> ImageDecoder for PnmDecoder<R>
fn dimensions(&self) -> (u32, u32)fn color_type(&self) -> ColorTypefn original_color_type(&self) -> ExtendedColorTypefn read_image(self, buf: &mut [u8]) -> ImageResult<()>fn read_image_boxed(self: Box<Self>, buf: &mut [u8]) -> ImageResult<()>