Struct tinytga::Tga [−][src]
pub struct Tga<'a, C> { /* fields omitted */ }
Expand description
TGA image.
Implementations
Parses a TGA image from a byte slice.
Errors
If the bit depth of the source image does not match the bit depth of the output color type
C
, this method will return a ParseError::MismatchedBpp
error.
Converts a raw TGA object into a embedded-graphics TGA object.
Errors
If the bit depth of the source image does not match the bit depth of the output color type
C
, this method will return a ParseError::MismatchedBpp
error.
Returns a reference to the raw TGA image.
The RawTga
object can be used to access lower level details about the TGA file.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
pub fn bounding_box(&self) -> Rectangle
pub fn bounding_box(&self) -> Rectangle
Returns the bounding box.
Casts the value.
Casts the value.
Casts the value.
Casts the value.