claw::graphic::targa::file_structure::header::specification Struct Reference

#include <targa.hpp>

List of all members.


Detailed Description

Image specification.

Definition at line 102 of file targa.hpp.


Public Member Functions

bool up_down_oriented () const
 Is image stored up to down ?
bool left_right_oriented () const
 Is image stored left to right ?
unsigned char alpha () const
 Number of bits per pixel assigned to alpha chanel.

Public Attributes

unsigned short x_origin
 Lower left corner X-origin.
unsigned short y_origin
 Lower left corner Y-origin.
unsigned short width
 Image width.
unsigned short height
 Image height.
unsigned char bpp
 Bits per pixel.
unsigned char descriptor
 descriptor.

Member Function Documentation

bool claw::graphic::targa::file_structure::header::specification::up_down_oriented (  )  const

Is image stored up to down ?

Definition at line 89 of file targa_file_structure.cpp.

References descriptor.

Referenced by claw::graphic::targa::reader::decompress_rle_color_mapped(), claw::graphic::targa::reader::decompress_rle_true_color(), claw::graphic::targa::reader::load_color_mapped_raw(), and claw::graphic::targa::reader::load_true_color_raw().

00090 {
00091   return descriptor & 0x20;
00092 } // targa::file_structure::header::specification::up_down_oriented()

bool claw::graphic::targa::file_structure::header::specification::left_right_oriented (  )  const

Is image stored left to right ?

Definition at line 100 of file targa_file_structure.cpp.

References descriptor.

Referenced by claw::graphic::targa::reader::decompress_rle_color_mapped(), claw::graphic::targa::reader::decompress_rle_true_color(), claw::graphic::targa::reader::load_color_mapped_raw(), and claw::graphic::targa::reader::load_true_color_raw().

00101 {
00102   return !(descriptor & 0x10);
00103 } // targa::file_structure::header::specification::left_right_oriented()

unsigned char claw::graphic::targa::file_structure::header::specification::alpha (  )  const

Number of bits per pixel assigned to alpha chanel.

Definition at line 110 of file targa_file_structure.cpp.

References descriptor.

00111 {
00112   return descriptor & 0x0F;
00113 } // targa::file_structure::header::specification::alpha()


Member Data Documentation

Lower left corner X-origin.

Definition at line 105 of file targa.hpp.

Referenced by claw::graphic::targa::file_structure::header::header().

Lower left corner Y-origin.

Definition at line 107 of file targa.hpp.

Referenced by claw::graphic::targa::file_structure::header::header().


The documentation for this struct was generated from the following files:

Generated on Thu Jun 26 09:35:06 2008 for CLAW Library (a C++ Library Absolutely Wonderful) by  doxygen 1.5.6