rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvFixedQuantizer Class Reference

Fixed Colormap Quantizer base class. More...

#include <ilviews/bitmaps/fixquant.h>

Inheritance diagram for IlvFixedQuantizer:
IlvQuantizer IlvNetscapeQuantizer IlvQuickQuantizer

List of all members.

Public Member Functions

 IlvFixedQuantizer (IlvColorMap *cmap=0)
 Constructor.
 ~IlvFixedQuantizer ()
 Destructor.
IlvColorMapcomputeColorMap (const IlvBitmapData *data, IlUInt numcolors)
 Returns the colormap.

Detailed Description

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

See also:
IlvFixedQuantizer, IlvQuickQuantizer, IlvWUQuantizer, IlvNetscapeQuantizer

Constructor & Destructor Documentation

IlvFixedQuantizer::IlvFixedQuantizer ( IlvColorMap cmap = 0  ) 

Constructor.

Parameters:
cmap The colormap to use.
IlvFixedQuantizer::~IlvFixedQuantizer (  ) 

Destructor.

The default implementation unlocks the colormap.


Member Function Documentation

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

Returns the colormap.

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

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.