Wavelet and Image class library  1.3.2
Public Member Functions | Protected Member Functions
PixmapWriter Class Reference

#include <PixmapWriter.hh>

Inheritance diagram for PixmapWriter:
Inheritance graph
[legend]
Collaboration diagram for PixmapWriter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PixmapWriter (char const *name, Image *images[], int channels)
virtual ~PixmapWriter (void)
void write (void)

Protected Member Functions

virtual int writefmt (void)=0

Detailed Description

An abstract image writer. The image is being written putting its content from an array of greyscale image objects into the file.

Definition at line 23 of file PixmapWriter.hh.


Constructor & Destructor Documentation

PixmapWriter::PixmapWriter ( char const *  name,
Image images[],
int  channels 
) [inline]

Constructor. Only calls the mother class' constructor to initialize the {ImageArray} reference.

Parameters:
namethe file name
imagesthe array of greyscale images for the values
channelsthe number of colors

Definition at line 36 of file PixmapWriter.hh.

virtual PixmapWriter::~PixmapWriter ( void  ) [inline, virtual]

Destructor - does nothing.

Definition at line 40 of file PixmapWriter.hh.


Member Function Documentation

void PixmapWriter::write ( void  )

Write the image. All steps independent of the file format will be performed, like testing for file writeability etc.

Exceptions:
ios_base::failurea read error has occured [not supported by all libraries, so eventually {invalid_argument} instead]
virtual int PixmapWriter::writefmt ( void  ) [protected, pure virtual]

Write different file formats (abstract). This is the method to be implemented for every image file format. It will be called by the {write ()} method.

Returns:
0 if successful, -1 on write error.

Implemented in PfcWriter, JpgWriter, and PpmWriter.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines