|
Claw 1.7.0
|
A class for xbm pictures. More...
#include <xbm.hpp>
Classes | |
| class | reader |
| This class read data from a xbm file and store it in an image. More... | |
| class | writer |
| This class write an image in a xbm file. More... | |
Public Member Functions | |
| xbm (unsigned int w, unsigned int h) | |
| Constructor. Creates an empty image. | |
| xbm (const image &that) | |
| Copy constructor. | |
| xbm (std::istream &f) | |
| Constructor. Load an image from a xbm file. | |
| ~xbm () | |
| Destructor. | |
| void | save (std::ostream &os) const |
| Save the image. | |
| void | set_name (const std::string &name) |
| Set the name of the image. | |
| void | set_hot (const claw::math::coordinate_2d< int > &hot) |
| Set the hot spot of the image. | |
| claw::graphic::xbm::xbm | ( | unsigned int | w, |
| unsigned int | h | ||
| ) |
| claw::graphic::xbm::xbm | ( | const image & | that | ) |
| claw::graphic::xbm::xbm | ( | std::istream & | f | ) |
| void claw::graphic::xbm::save | ( | std::ostream & | f | ) | const |
Save the image.
| f | The file in which we write. |
Definition at line 82 of file xbm.cpp.
Referenced by claw::graphic::xbm::writer::writer().
| void claw::graphic::xbm::set_hot | ( | const claw::math::coordinate_2d< int > & | hot | ) |
Set the hot spot of the image.
| hot | The hot spot of the image; |
Definition at line 102 of file xbm.cpp.
Referenced by claw::graphic::xbm::reader::reader().
| void claw::graphic::xbm::set_name | ( | const std::string & | name | ) |
Set the name of the image.
| name | The name of the image; |
Definition at line 92 of file xbm.cpp.
Referenced by claw::graphic::xbm::reader::reader().
1.7.4