[−][src]Struct tinytga::TgaHeader
TGA header structure, referenced from https://www.fileformat.info/format/tga/egff.htm
Fields
id_len: u8
Image ID field length
has_color_map: bool
Whether a color map is included in the image data
image_type: ImageType
Image type
color_map_start: u16
Color map origin
color_map_len: u16
Length of color map
color_map_depth: u8
Number of bits in each color palette entry, typically 15, 16, 24, or 32 bits
x_origin: u16
Image origin (X)
y_origin: u16
Image origin (Y)
width: u16
Image width in pixels
height: u16
Image height in pixels
pixel_depth: u8
Pixel bit depth (8, 16, 24, 32 bits)
image_descriptor: u8
Image 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 Clone for TgaHeader
[src]
fn clone(&self) -> TgaHeader
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TgaHeader
[src]
impl Debug for TgaHeader
[src]
impl Eq for TgaHeader
[src]
impl Hash for TgaHeader
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for TgaHeader
[src]
fn cmp(&self, other: &TgaHeader) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TgaHeader> for TgaHeader
[src]
impl PartialOrd<TgaHeader> for TgaHeader
[src]
fn partial_cmp(&self, other: &TgaHeader) -> Option<Ordering>
[src]
fn lt(&self, other: &TgaHeader) -> bool
[src]
fn le(&self, other: &TgaHeader) -> bool
[src]
fn gt(&self, other: &TgaHeader) -> bool
[src]
fn ge(&self, other: &TgaHeader) -> bool
[src]
impl StructuralEq for TgaHeader
[src]
impl StructuralPartialEq for TgaHeader
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,