Class GamConvert8

3DS Max Plug-In SDK

Class GamConvert8

See Also: Class GammaMgr, Class GamConvert16.

class GamConvert8

Description:

A temporary table for converting 8->16. A developer may define an instance of this class and it will build a gamma correction table. The constructor will build the table with the specified gamma setting and the destructor will free the table. All methods of this class are implemented by the system.

Methods:

Prototype:

GamConvert8(float gam=1.0f);

Remarks:

Constructor. The gamma table is built using the specified gamma setting.

Prototype:

void SetGamma(float gam);

Remarks:

Sets the gamma setting to the value specified and builds the gamma table.

Parameters:

float gam

The gamma value to set.

Prototype:

UWORD Convert(UBYTE v);

Remarks:

Gamma corrects the specified color.

Parameters:

UBYTE v

The color to gamma correct.

Return Value:

The gamma corrected value.