Rogue Wave Views
Foundation Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlvFixedQuantizer Class Reference

Fixed Colormap Quantizer base class. More...

#include <ilviews/bitmaps/fixquant.h>

Inheritance diagram for IlvFixedQuantizer:
IlvQuantizer IlvNetscapeQuantizer IlvQuickQuantizer

Public Member Functions

 IlvFixedQuantizer (IlvColorMap *cmap=0)
 Constructor. More...
 
 ~IlvFixedQuantizer ()
 Destructor. More...
 
IlvColorMapcomputeColorMap (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 IlvIndexedBitmapDataquantize (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...
 
virtual IlvIndexedBitmapDataremap (const IlvBitmapData *data, const IlvColorMap *colormap, IlBoolean fsdither=IlTrue)
 Remaps the true colors to the indexed colors. More...
 
void setDithering (IlBoolean dither)
 Sets whether the instance uses Floyd-Steinberg dithering. More...
 

Detailed Description

Fixed Colormap Quantizer base 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). This class has two subclasses:

See also
IlvFixedQuantizer, IlvQuickQuantizer, IlvWUQuantizer, IlvNetscapeQuantizer

Constructor & Destructor Documentation

§ IlvFixedQuantizer()

IlvFixedQuantizer::IlvFixedQuantizer ( IlvColorMap cmap = 0)

Constructor.

Parameters
cmapThe colormap to use.

§ ~IlvFixedQuantizer()

IlvFixedQuantizer::~IlvFixedQuantizer ( )

Destructor.

The default implementation unlocks the colormap.

Member Function Documentation

§ computeColorMap()

IlvColorMap* IlvFixedQuantizer::computeColorMap ( const IlvBitmapData data,
IlUInt  numcolors 
)
virtual

Returns the colormap.

Parameters
dataThe original true color bitmap data.
numcolorsThe requested number of colors, ignored as the colormap is precomputed.
Returns
The computed colormap.

Implements IlvQuantizer.


© Copyright 2017, 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.