|
Claw 1.7.0
|
A class for bitmap images. More...
#include <bitmap.hpp>
Classes | |
| class | file_structure |
| Tool class used for defining the structures of the datas stored in a bitmap file. | |
| class | reader |
| This class read data from a bitmap file and store it in an image. More... | |
| class | writer |
| This class write an image in a bitmap file. More... | |
Public Member Functions | |
| bitmap (unsigned int w, unsigned int h) | |
| Constructor. Creates an empty image. | |
| bitmap (const image &that) | |
| Copy constructor. | |
| bitmap (std::istream &f) | |
| Constructor. Load an image from a bitmap file. | |
| void | save (std::ostream &f) const |
| Save the bitmap in a file. | |
A class for bitmap images.
Definition at line 48 of file bitmap.hpp.
| claw::graphic::bitmap::bitmap | ( | unsigned int | w, |
| unsigned int | h | ||
| ) |
Constructor. Creates an empty image.
| w | Image's width. |
| h | Image's height. |
Definition at line 39 of file bitmap.cpp.
| claw::graphic::bitmap::bitmap | ( | const image & | that | ) |
| claw::graphic::bitmap::bitmap | ( | std::istream & | f | ) |
Constructor. Load an image from a bitmap file.
| f | Bitmap file. |
Definition at line 61 of file bitmap.cpp.
| void claw::graphic::bitmap::save | ( | std::ostream & | f | ) | const |
1.7.4