rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvWUQuantizer Class Reference

WU quantizer class. More...

#include <ilviews/bitmaps/wuquant.h>

Inheritance diagram for IlvWUQuantizer:
IlvQuantizer

List of all members.

Public Member Functions

 IlvWUQuantizer ()
 Constructor.
IlvColorMapcomputeColorMap (const IlvBitmapData *data, IlUInt numcolors)
 Computes the colormap from the original true color bitmap data.

Detailed Description

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.

See also:
IlvFixedQuantizer, IlvQuantizer, IlvNetscapeQuantizer, IlvQuickQuantizer

Member Function Documentation

IlvColorMap* IlvWUQuantizer::computeColorMap ( const IlvBitmapData data,
IlUInt  numcolors 
) [virtual]

Computes the colormap from the original true color bitmap data.

Parameters:
data The original true color bitmap data.
numcolors The requested number of colors.
Returns:
The computed colormap. It has at most numcolors colors.

Implements IlvQuantizer.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

© 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.