Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
WU quantizer class. More...
#include <ilviews/bitmaps/wuquant.h>
Public Member Functions | |
IlvWUQuantizer () | |
Constructor. | |
IlvColorMap * | computeColorMap (const IlvBitmapData *data, IlUInt numcolors) |
Computes the colormap from the original true color bitmap data. |
WU quantizer class.
Library: display
This class provides methods to convert true color images to indexed images using a computed colormap. The method used is known as the WU method (see Graphics Gems Vol II), which gives very good results at reasonable speed. This method is the default method used by the Views library to create an IlvBitmap
from true color bitmap data on indexed displays.
IlvColorMap* IlvWUQuantizer::computeColorMap | ( | const IlvBitmapData * | data, | |
IlUInt | numcolors | |||
) | [virtual] |
Computes the colormap from the original true color bitmap data.
data | The original true color bitmap data. | |
numcolors | The requested number of colors. |
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.