Claw
1.7.3
|
This class read data from a targa file and store it in an image. More...
#include <targa.hpp>
Inherits claw::graphic::targa::file_structure.
Public Member Functions | |
reader (image &img) | |
Constructor. | |
reader (image &img, std::istream &f) | |
Constructor. | |
void | load (std::istream &f) |
Load an image from a targa file. |
Additional Inherited Members | |
Private Types inherited from claw::graphic::targa::file_structure | |
enum | image_coding { color_mapped = 1, true_color = 2, black_and_white = 3, rle_color_mapped = 9, rle_true_color = 10, rle_black_and_white = 11 } |
This class read data from a targa file and store it in an image.
claw::graphic::targa::reader::reader | ( | image & | img | ) |
Constructor.
img | The image in which the data will be stored. |
Definition at line 193 of file targa_reader.cpp.
claw::graphic::targa::reader::reader | ( | image & | img, |
std::istream & | f | ||
) |
Constructor.
img | The image in which the data will be stored. |
f | The file from which we read the data. |
Definition at line 206 of file targa_reader.cpp.
References load().
void claw::graphic::targa::reader::load | ( | std::istream & | f | ) |
Load an image from a targa file.
f | Targa file. |
Definition at line 217 of file targa_reader.cpp.
References CLAW_PRECOND, claw::graphic::targa::file_structure::header::specification::height, claw::graphic::targa::file_structure::header::image_specification, claw::graphic::targa::file_structure::header::image_type, and claw::graphic::targa::file_structure::header::specification::width.
Referenced by reader().