| VRS - The Virtual Rendering System |
| version 3.3 |
#include <vrs/image/rgb2paletteimage.h>

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 Image * | manipulate (Image *) |
| virtual Image * | manipulate (Image *source, Image *target) |
| void | cleanup () |
| deletes all internal color nodes | |
| VRS_TYPEINFO (RGB2PaletteImage, ImageManipulator) | |
| 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.
| VRS::RGB2PaletteImage::VRS_SERIALIZABLE_CLASS_ENUM | ( | Quality | ) |
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.
'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 | ||||
| ) |