Rogue Wave Views Foundation Package API Reference Guide |
Rogue Wave Views Documentation Home |
332 fixed colormap quantizer class. More...
#include <ilviews/bitmaps/qckquant.h>
Public Member Functions | |
IlvQuickQuantizer () | |
Constructor. The constructor creates the colormap. | |
IlvIndexedBitmapData * | remap (const IlvBitmapData *data, const IlvColorMap *cmap, IlBoolean dither=IlTrue) |
Converts true colors to the indexed colors. This method is derived because the remapping can be done quickly using simple bit shifts instead of using the general but slow IlvQuantizer::remap() method. More... | |
Public Member Functions inherited from IlvFixedQuantizer | |
IlvFixedQuantizer (IlvColorMap *cmap=0) | |
Constructor. More... | |
~IlvFixedQuantizer () | |
Destructor. More... | |
IlvColorMap * | computeColorMap (const IlvBitmapData *data, IlUInt numcolors) |
Returns the colormap. More... | |
Public Member Functions inherited from IlvQuantizer | |
virtual IlBoolean | hasDithering () const |
Returns whether the instance uses Floyd-Steinberg dithering. More... | |
virtual IlvIndexedBitmapData * | quantize (const IlvBitmapData *data, IlUInt numcols) |
Creates indexed bitmap data from true color bitmap data using the requested number of colors (this number can be ignored by the actual quantizer). The default implementation calls computeColorMap and then remap . More... | |
void | setDithering (IlBoolean dither) |
Sets whether the instance uses Floyd-Steinberg dithering. More... | |
332 fixed colormap quantizer class.
Library: xviews or winviews or mviews (mutually exclusive)
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). The colormap is computed using 3 bits for red and green and 2 bits for blue.
|
virtual |
Converts true colors to the indexed colors. This method is derived because the remapping can be done quickly using simple bit shifts instead of using the general but slow IlvQuantizer::remap()
method.
data | The original true color bitmap data. |
cmap | The colormap to remap the bitmap data to. |
dither | An IlBoolean value to indicate whether or no to use Floyd-Steinberg error diffusion. |
Reimplemented from IlvQuantizer.
© Copyright 2016, 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.