Claw  1.7.3
Classes | Public Member Functions | List of all members
claw::graphic::pcx::reader Class Reference

This class read data from a pcx file and store it in an image. More...

#include <pcx.hpp>

Classes

class  converter_16
 Function object that converts a scanline of a 4bpp color mapped pcx into 32 bpp pixels.
class  converter_256
 Function object that converts a scanline of a 8bpp color mapped pcx into 32 bpp pixels.
class  converter_mono
 Function object that converts a scanline of a monochrome pcx into 32 bpp pixels.
class  converter_true_color
 Function object that converts a scanline of a 3 planes true color scanline into 32 bpp pixels.
class  rle_pcx_decoder
 RLE decoder for pcx RLE format.
class  rle_pcx_output_buffer
 The output buffer for the RLE decoder.

Public Member Functions

 reader (image &img)
 Constructor.
 reader (image &img, std::istream &f)
 Constructor.
void load (std::istream &f)
 Load an image from a pcx file.

Detailed Description

This class read data from a pcx file and store it in an image.

Author
Julien Jorge

Definition at line 158 of file pcx.hpp.

Constructor & Destructor Documentation

claw::graphic::pcx::reader::reader ( image img)

Constructor.

Parameters
imgThe image in which the data will be stored.

Definition at line 270 of file pcx_reader.cpp.

claw::graphic::pcx::reader::reader ( image img,
std::istream &  f 
)

Constructor.

Parameters
imgThe image in which the data will be stored.
fThe file from which we read the data.
Postcondition
img contains the data from f.

Definition at line 283 of file pcx_reader.cpp.

References load().

Member Function Documentation

void claw::graphic::pcx::reader::load ( std::istream &  f)

Load an image from a pcx file.

Parameters
fPcx file.

Definition at line 294 of file pcx_reader.cpp.

References CLAW_PRECOND.

Referenced by reader().


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