Claw 1.7.0
Classes | Public Member Functions
claw::graphic::pcx Class Reference

A class for pcx pictures. More...

#include <pcx.hpp>

Inheritance diagram for claw::graphic::pcx:
claw::graphic::image

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:
wImage's width.
hImage'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:
thatImage to copy from.

Definition at line 50 of file pcx.cpp.

claw::graphic::pcx::pcx ( std::istream &  f)

Constructor. Load an image from a pcx file.

Parameters:
fPcx file.

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:
osThe stream in which we write.

Definition at line 71 of file pcx.cpp.


The documentation for this class was generated from the following files: