A class for pcx pictures.
More...
#include <pcx.hpp>
List of all members.
Classes |
class | header |
| Header of a pcx file.
|
class | reader |
| This class read data from a pcx file and store it in an image. More...
|
class | writer |
| This class write an image in a pcx file. More...
|
Public Member Functions |
| pcx (unsigned int w, unsigned int h) |
| Constructor. Creates an empty image.
|
| pcx (const image &that) |
| Copy constructor.
|
| pcx (std::istream &f) |
| Constructor. Load an image from a pcx file.
|
void | save (std::ostream &os) const |
| Save the content of the image in a stream.
|
Detailed Description
A class for pcx pictures.
- Author:
- Julien Jorge
Definition at line 49 of file pcx.hpp.
Constructor & Destructor Documentation
claw::graphic::pcx::pcx |
( |
unsigned int |
w, |
|
|
unsigned int |
h |
|
) |
| |
Constructor. Creates an empty image.
- Parameters:
-
w | Image's width. |
h | Image's height. |
- Precondition:
- w > 0 and h > 0
Definition at line 39 of file pcx.cpp.
claw::graphic::pcx::pcx |
( |
const image & |
that | ) |
|
Copy constructor.
- Parameters:
-
Definition at line 50 of file pcx.cpp.
claw::graphic::pcx::pcx |
( |
std::istream & |
f | ) |
|
Constructor. Load an image from a pcx file.
- Parameters:
-
Definition at line 61 of file pcx.cpp.
Member Function Documentation
void claw::graphic::pcx::save |
( |
std::ostream & |
os | ) |
const |
Save the content of the image in a stream.
- Parameters:
-
os | The stream in which we write. |
Definition at line 71 of file pcx.cpp.
The documentation for this class was generated from the following files: