version 3.3

VRS::RGB2PaletteImage Class Reference

RGB to PaletteImage converter. More...

#include <vrs/image/rgb2paletteimage.h>

Inheritance diagram for VRS::RGB2PaletteImage:

VRS::ImageManipulator VRS::SharedObj VRS::Visitable

List of all members.

Public Types

enum  Quality { HIGH = 2, NORMAL = 4 }

Public Member Functions

 VRS_SERIALIZABLE_CLASS_ENUM (Quality)
 RGB2PaletteImage (Quality quality=RGB2PaletteImage::NORMAL, bool cleanup=true)
virtual Imagemanipulate (Image *)
virtual Imagemanipulate (Image *source, Image *target)
void cleanup ()
 deletes all internal color nodes
 VRS_TYPEINFO (RGB2PaletteImage, ImageManipulator)


Detailed Description

RGB to PaletteImage converter.

Member Enumeration Documentation

Enumerator:
HIGH 
NORMAL 


Constructor & Destructor Documentation

VRS::RGB2PaletteImage::RGB2PaletteImage ( Quality  quality = RGB2PaletteImage::NORMAL,
bool  cleanup = true 
)

Converts GB to paletteimages. HIGH quality needs more memory and processing time than NORMAL. if is true, the internal octree structure is not deleted after converting. All following manipualtions will use this octree until cleanup is called.


Member Function Documentation

VRS::RGB2PaletteImage::VRS_SERIALIZABLE_CLASS_ENUM ( Quality   ) 

virtual Image* VRS::RGB2PaletteImage::manipulate ( Image image  )  [virtual]

The image operation is executed for the given image, i.e., the result of the image operation is stored in that image, too. A temporal buffer might be necessary to perform the image operation. The handle of the given image is returned.

Reimplemented from VRS::ImageManipulator.

virtual Image* VRS::RGB2PaletteImage::manipulate ( Image source,
Image target 
) [virtual]

'source' must be a 3 layer image and 'target' must be a PaletteImage.

Implements VRS::ImageManipulator.

void VRS::RGB2PaletteImage::cleanup (  ) 

deletes all internal color nodes

VRS::RGB2PaletteImage::VRS_TYPEINFO ( RGB2PaletteImage  ,
ImageManipulator   
)


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

Generated on Tue May 22 06:00:21 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact