Claw
1.7.3
|
This class write an image in a targa file. More...
#include <targa.hpp>
Inherits claw::graphic::targa::file_structure.
Classes | |
class | file_output_buffer |
The type of the output buffer associated with the file when encoding RLE data. More... | |
class | rle_targa_encoder |
RLE encoder for targa format. More... |
Public Types | |
typedef rle_targa_encoder < rgba_pixel_8 > | rle32_encoder |
RLE encoder for 32 bpp targa images. |
Public Member Functions | |
writer (const image &img) | |
Constructor. | |
writer (const image &img, std::ostream &f, bool rle) | |
Constructor. | |
void | save (std::ostream &f, bool rle) const |
Save the content of the image in a stream. |
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 } |
claw::graphic::targa::writer::writer | ( | const image & | img | ) |
claw::graphic::targa::writer::writer | ( | const image & | img, |
std::ostream & | f, | ||
bool | rle | ||
) |
Constructor.
img | The image to save. |
f | The file in which we save the data. |
rle | Tell if we must encode the data. |
Definition at line 86 of file targa_writer.cpp.
References claw::graphic::targa::save().
void claw::graphic::targa::writer::save | ( | std::ostream & | os, |
bool | rle | ||
) | const |
Save the content of the image in a stream.
os | The stream in which we write. |
rle | Tell if we must encode the data. |
Definition at line 98 of file targa_writer.cpp.
References claw::graphic::targa::file_structure::header::image_type.