![]() Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Fixed Colormap Quantizer base class. More...
#include <ilviews/bitmaps/fixquant.h>
Public Member Functions | |
| IlvFixedQuantizer (IlvColorMap *cmap=0) | |
| Constructor. | |
| ~IlvFixedQuantizer () | |
| Destructor. | |
| IlvColorMap * | computeColorMap (const IlvBitmapData *data, IlUInt numcolors) |
| Returns the colormap. | |
Fixed Colormap Quantizer base class.
Library: display
This class provides methods to convert true color images to indexed images using a fixed colormap (The colormap is not computed from the source image). This class has two subclasses:
IlvQuickQuantizer to remap to colors well distributed in the color cube (colors are computed using 3 bits for red and green and 2 bits for blue). IlvNetscapeQuantizer to remap to the predefined Netscape colormap (it uses 216 colors). | IlvFixedQuantizer::IlvFixedQuantizer | ( | IlvColorMap * | cmap = 0 |
) |
Constructor.
| cmap | The colormap to use. |
| IlvFixedQuantizer::~IlvFixedQuantizer | ( | ) |
Destructor.
The default implementation unlocks the colormap.
| IlvColorMap* IlvFixedQuantizer::computeColorMap | ( | const IlvBitmapData * | data, | |
| IlUInt | numcolors | |||
| ) | [virtual] |
Returns the colormap.
| data | The original true color bitmap data. | |
| numcolors | The requested number of colors, ignored as the colormap is precomputed. |
Implements IlvQuantizer.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.