Claw
1.7.3
|
This class write an image in a bitmap file. More...
#include <bitmap.hpp>
Inherits claw::graphic::bitmap::file_structure.
Public Member Functions | |
writer (const image &img) | |
Constructor. | |
writer (const image &img, std::ostream &f) | |
Constructor. | |
void | save (std::ostream &f) const |
Save the bitmap in a file. |
Additional Inherited Members | |
Private Types inherited from claw::graphic::bitmap::file_structure | |
enum | compression { BMP_COMPRESSION_RGB = 0, BMP_COMPRESSION_RLE8 = 1, BMP_COMPRESSION_RLE4 = 2, BMP_COMPRESSION_BITFIELDS = 3 } |
Compression mode. | |
typedef color_palette < rgba_pixel_8 > | color_palette_type |
The type of the color palette for low color image files. |
This class write an image in a bitmap file.
Definition at line 296 of file bitmap.hpp.
claw::graphic::bitmap::writer::writer | ( | const image & | img | ) |
claw::graphic::bitmap::writer::writer | ( | const image & | img, |
std::ostream & | f | ||
) |
Constructor.
img | The image to save. |
f | The file in which we save the data. |
Definition at line 50 of file bitmap_writer.cpp.
References save().
void claw::graphic::bitmap::writer::save | ( | std::ostream & | f | ) | const |
Save the bitmap in a file.
f | Destination file. |
Definition at line 61 of file bitmap_writer.cpp.
Referenced by writer().