Struct image::tiff::TIFFDecoder [] [src]

pub struct TIFFDecoder<R> where
    R: Read + Seek
{ /* fields omitted */ }

The representation of a TIFF decoder

Currently does not support decoding of interlaced images

Methods

impl<R: Read + Seek> TIFFDecoder<R>
[src]

Create a new decoder that decodes from the stream r

Initializes the decoder.

Reads in the next image. If there is no further image in the TIFF file a format error is returned. To determine whether there are more images call TIFFDecoder::more_images instead.

Returns true if there is at least one more image available.

Returns the byte_order

Reads a TIFF short value

Reads a TIFF long value

Reads a TIFF IFA offset/value field

Moves the cursor to the specified offset

Trait Implementations

impl<R: Debug> Debug for TIFFDecoder<R> where
    R: Read + Seek
[src]

Formats the value using the given formatter.

impl<R: Read + Seek> ImageDecoder for TIFFDecoder<R>
[src]

Returns a tuple containing the width and height of the image

Returns the color type of the image e.g. RGB(8) (8bit RGB)

Returns the length in bytes of one decoded row of the image

Reads one row from the image into buf and returns the row index

Decodes the entire image and return it as a Vector

Returns true if the image is animated

Returns the frames of the image Read more

Decodes a specific region of the image, represented by the rectangle starting from x and y and having length and width Read more