Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::PNGLoader Class Reference

A class for built in support for reading and writing PNG images. More...

#include <vcf/GraphicsKit/PNGLoader.h>

Inheritance diagram for VCF::PNGLoader:

VCF::Object VCF::ImageLoader List of all members.

Public Member Functions

 PNGLoader ()
virtual ~PNGLoader ()
virtual ImageloadImageFromFile (const String &fileName)
 loads the image from a file
virtual ImageloadImageFromBytes (const unsigned char *imageData, const uint64 &dataLength)
virtual ImageloadImageFromStream (InputStream *stream)
virtual void saveImageToFile (const String &fileName, Image *image)
 Saves the image to file.
virtual bool canSaveImage ()
 does this ImageLoader support saving the image

Detailed Description

A class for built in support for reading and writing PNG images.


Constructor & Destructor Documentation

VCF::PNGLoader::PNGLoader  ) 
 

virtual VCF::PNGLoader::~PNGLoader  )  [virtual]
 


Member Function Documentation

virtual bool VCF::PNGLoader::canSaveImage  )  [inline, virtual]
 

does this ImageLoader support saving the image

Returns:
bool returns true if the ImageLoader supports saving the image, otherwise returns false. If the this function does return true, then it is safe to call saveImageToFile()

Implements VCF::ImageLoader.

virtual Image* VCF::PNGLoader::loadImageFromBytes const unsigned char *  imageData,
const uint64 dataLength
[virtual]
 

Implements VCF::ImageLoader.

virtual Image* VCF::PNGLoader::loadImageFromFile const String fileName  )  [virtual]
 

loads the image from a file

Parameters:
String the fully qualified file name that specifies the image to load

Implements VCF::ImageLoader.

virtual Image* VCF::PNGLoader::loadImageFromStream InputStream stream  )  [virtual]
 

Implements VCF::ImageLoader.

virtual void VCF::PNGLoader::saveImageToFile const String fileName,
Image image
[virtual]
 

Saves the image to file.

Parameters:
String the fully qualified filename that specifies the file to save.
Image the image object that will be saved

Implements VCF::ImageLoader.


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information