rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvQuickQuantizer Class Reference

332 fixed colormap quantizer class. More...

#include <ilviews/bitmaps/qckquant.h>

Inheritance diagram for IlvQuickQuantizer:
IlvFixedQuantizer IlvQuantizer

List of all members.

Public Member Functions

 IlvQuickQuantizer ()
 Constructor. The constructor creates the colormap.
IlvIndexedBitmapDataremap (const IlvBitmapData *data, const IlvColorMap *cmap, IlBoolean dither=((IlBoolean) 1))
 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.

Detailed Description

332 fixed colormap quantizer 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). The colormap is computed using 3 bits for red and green and 2 bits for blue.

See also:
IlvFixedQuantizer, IlvQuantizer, IlvWUQuantizer, IlvNetscapeQuantizer

Member Function Documentation

IlvIndexedBitmapData* IlvQuickQuantizer::remap ( const IlvBitmapData data,
const IlvColorMap cmap,
IlBoolean  dither = ((IlBoolean) 1) 
) [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.

Parameters:
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.
Returns:
The computed indexed bitmap data.

Reimplemented from 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.