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. More... | |
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.
00040 : claw::graphic::image(w, h) 00041 { 00042 00043 } // bitmap::bitmap() [constructor]
claw::graphic::bitmap::bitmap | ( | const image & | that | ) |
Copy constructor.
that | Image to copy from. |
Definition at line 50 of file bitmap.cpp.
00051 : claw::graphic::image(that) 00052 { 00053 00054 } // bitmap::bitmap() [copy constructor]
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 |
Save the bitmap in a file.
f | Destination file. |
Definition at line 71 of file bitmap.cpp.