Public Member Functions

ColorPacker Class Reference

Search for all occurrences

Detailed Description

See also:
Palettes, Class Quantizer.

Description:
Methods of this class are used for packing colors into a 256 color paletted representation. Create an instance of this class using BMMNewColorPacker() described below. All methods of this class are implemented by the system.

#include <palutil.h>

Inheritance diagram for ColorPacker:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual  ~ColorPacker ()
virtual void  EnableDither (BOOL onoff)=0
virtual void  PropogateErrorBetweenLines (BOOL onoff)=0
virtual void  PackLine (BMM_Color_64 *in, BYTE *out, int w)=0
virtual void  PackLine (BMM_Color_48 *in, BYTE *out, int w)=0
virtual void  DeleteThis ()=0

Constructor & Destructor Documentation

virtual ~ColorPacker ( ) [inline, virtual]
Remarks:
Destructor.
{}

Member Function Documentation

virtual void EnableDither ( BOOL  onoff ) [pure virtual]
Remarks:
This method is used to enable dithering of the packed pixels. It defaults to the 3ds Max default.
Parameters:
BOOL onoff

TRUE to enable dithering; FALSE to disable.
virtual void PropogateErrorBetweenLines ( BOOL  onoff ) [pure virtual]
Remarks:
This method controls the propagation of error between lines. For static images this is best left to default to on. For animated images, it is better to set this to off and not propagate the error between lines. This defaults to ON.
Parameters:
BOOL onoff

TRUE to enable error propagation between lines; FALSE to disable.
virtual void PackLine ( BMM_Color_64 in,
BYTE *  out,
int  w 
) [pure virtual]
Remarks:
Packs the specified line of pixels into the 256 color representation.
Parameters:
BMM_Color_64* in

The line of pixels to pack.

BYTE *out

The result, the output pixels.

int w

The number of pixels in the line.
virtual void PackLine ( BMM_Color_48 in,
BYTE *  out,
int  w 
) [pure virtual]
Remarks:
Packs the specified line of pixels into the 256 color representation.
Parameters:
BMM_Color_48* in

The line of pixels to pack.

BYTE *out

The result, the output pixels.

int w

The number of pixels in the line.
virtual void DeleteThis ( ) [pure virtual]
Remarks:
This method is called to delete the ColorPacker when you are done with it.

ColorPacker ColorPacker ColorPacker ColorPacker ColorPacker ColorPacker ColorPacker ColorPacker ColorPacker ColorPacker
ColorPacker ColorPacker ColorPacker ColorPacker ColorPacker ColorPacker ColorPacker ColorPacker ColorPacker ColorPacker