ncut::PNGImage Class Reference

#include <ncutImage.h>

Inheritance diagram for ncut::PNGImage:

ncut::Image< PNG_IMAGE_DATATYPE > List of all members.

Public Member Functions

int load (const char *filename)
 Load the PNG image file "filename".
int save (const char *filename) const
 Save this PNGImage into the file "filename".
 PNGImage ()
 PNGImage empty constructor.
 PNGImage (const PNGImage &clone)
 PNGImage copy constructor.
 PNGImage (const char *filename)
 A PNGImage can be contructed using a PNG image stored on disk.
 PNGImage (int width, int height, int nChl)
 PNGImage custom constructor.
virtual ~PNGImage ()
 PNGImage destructor.
virtual PNGImageoperator= (const PNGImage &clone)
 PNGImage assignment operator.

Detailed Description

PNGImage adds PNG-specific load and save functionality to its base class Image.


Constructor & Destructor Documentation

ncut::PNGImage::PNGImage  ) 
 

PNGImage empty constructor.

Creates an empty image with width=height=channels=0.

ncut::PNGImage::PNGImage const PNGImage clone  ) 
 

PNGImage copy constructor.

Parameters:
clone The PNGImage to be cloned.

ncut::PNGImage::PNGImage const char *  filename  ) 
 

A PNGImage can be contructed using a PNG image stored on disk.

Parameters:
filename A char array specifying the location of a PNG image.
Creates a PNGImage from the PNG image located at filename.

ncut::PNGImage::PNGImage int  width,
int  height,
int  nChl
 

PNGImage custom constructor.

Parameters:
width The width of the image.
height The height of the image.
nChl The number of channels of the image.
Creates an empty PNG image with the specified dimensions and initializes the data to zero.


Member Function Documentation

int ncut::PNGImage::load const char *  filename  ) 
 

Load the PNG image file "filename".

Parameters:
filename A char array specifying the location of a PNG image.
Returns:
0 if successful.
Replaces this PNG image with the PNG image located at filename.

PNGImage & ncut::PNGImage::operator= const PNGImage clone  )  [virtual]
 

PNGImage assignment operator.

Parameters:
clone The PNGImage to be cloned.
Returns:
This object.

int ncut::PNGImage::save const char *  filename  )  const
 

Save this PNGImage into the file "filename".

Parameters:
filename A char array specifying the destination of this PNGimage.
Returns:
0 if successful.


The documentation for this class was generated from the following files:
Generated on Thu Jun 22 14:47:22 2006 for ncut.kdevelop by  doxygen 1.4.6