claw::graphic::targa::file_structure::header Class Reference

Header of a targa file. More...

`#include <targa.hpp>`

## Classes

struct | specification
| Image specification. More...

## Public Member Functions

| header ()
| Default constructor.
| header (unsigned int w, unsigned int h)
| Constructor. More...

## Public Attributes

char | id_length
| Image identifier length.
char | color_map
| 1 if there is a color map, 0 otherwise.
char | image_type
| Image type.
struct {
unsigned short first_entry_index
| Index of the first color map entry.
unsigned short length
| Total number of color map entries included.
unsigned char entry_size
| Number of bits per enrty.
} | color_map_specification
| Color map specification.
specification | image_specification
| The specification of the image.

## Detailed Description

Header of a targa file.

Definition at line 76 of file targa.hpp.

## Constructor & Destructor Documentation

## header()

claw::graphic::targa::file_structure::header::header | ( | unsigned int | w,
|  | unsigned int | h
| ) |  |

Constructor.

Parameters

  w | The width of the image.
  h | The height of the image.

Definition at line 53 of file targa_file_structure.cpp.

References claw::graphic::targa::file_structure::header::specification::bpp, color_map, color_map_specification, claw::graphic::targa::file_structure::header::specification::descriptor, claw::graphic::targa::file_structure::header::specification::height, id_length, image_specification, image_type, claw::graphic::targa::file_structure::header::specification::up_down_oriented(), claw::graphic::targa::file_structure::header::specification::width, claw::graphic::targa::file_structure::header::specification::x_origin, and claw::graphic::targa::file_structure::header::specification::y_origin.

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

- targa.hpp
- code/targa_file_structure.cpp