[][src]Struct tgaimage::TGAHeader

#[repr(packed)]
pub struct TGAHeader {
    pub id_length: u8,
    pub color_map_type: u8,
    pub image_type: u8,
    pub color_map_origin: u16,
    pub color_map_length: u16,
    pub color_map_depth: u8,
    pub x_origin: u16,
    pub y_origin: u16,
    pub width: u16,
    pub height: u16,
    pub bits_per_pixel: u8,
    pub image_descriptor: u8,
}

TGA format: http://www.gamers.org/dEngine/quake3/TGA.txt

Fields

id_length: u8color_map_type: u8image_type: u8color_map_origin: u16color_map_length: u16color_map_depth: u8x_origin: u16y_origin: u16width: u16height: u16bits_per_pixel: u8image_descriptor: u8

Methods

impl TGAHeader[src]

pub fn new() -> Self[src]

pub fn from_reader<R: Read>(reader: &mut R) -> Self[src]

pub fn from_buf(buf: &Vec<u8>) -> Self[src]

pub fn raw(&self) -> Vec<u8>[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]