[−][src]Struct tinytga::TgaHeader
TGA header structure, referenced from https://www.fileformat.info/format/tga/egff.htm
Fields
id_len: u8Image ID field length
has_color_map: boolWhether a color map is included in the image data
image_type: ImageTypeImage type
color_map_start: u16Color map origin
color_map_len: u16Length of color map
color_map_depth: u8Number of bits in each color palette entry, typically 15, 16, 24, or 32 bits
x_origin: u16Image origin (X)
y_origin: u16Image origin (Y)
width: u16Image width in pixels
height: u16Image height in pixels
pixel_depth: u8Pixel bit depth (8, 16, 24, 32 bits)
image_descriptor: u8Image descriptor (unused)
Bits 0:3: Number of bits per pixel designated to alpha channel Bits 4:5: Image origin:
00= bottom left01= bottom right10= top left11= top right
Trait Implementations
impl PartialEq<TgaHeader> for TgaHeader[src]
impl Copy for TgaHeader[src]
impl Debug for TgaHeader[src]
impl Clone for TgaHeader[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,