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]

[src]

Create a new decoder that decodes from the stream r

[src]

Initializes the decoder.

[src]

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.

[src]

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

[src]

Returns the byte_order

[src]

Reads a TIFF short value

[src]

Reads a TIFF long value

[src]

Reads a TIFF IFA offset/value field

[src]

Moves the cursor to the specified offset

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

[src]

Returns a tuple containing the width and height of the image

[src]

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

[src]

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

[src]

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

[src]

Decodes the entire image and return it as a Vector

[src]

Returns true if the image is animated

[src]

Returns the frames of the image Read more

[src]

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