Struct image::tga::TGADecoder

source ·
pub struct TGADecoder<R> { /* private fields */ }
Expand description

A decoder for TGA images

Currently this decoder does not support 8, 15 and 16 bit color images. The representation of a TGA decoder

Implementations

Create a new decoder that decodes from the stream r

Trait Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Sets value as a parameter of self.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.