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
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.
Copy constructor.
- Parameters:
-
Definition at line 50 of file pcx.cpp.
Constructor. Load an image from a pcx file.
- Parameters:
-
Definition at line 61 of file pcx.cpp.
Member Function Documentation
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: