Public Member Functions

GamConvert8 Class Reference

Search for all occurrences

Detailed Description

See also:
Class GammaMgr, Class GamConvert16.

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.

#include <gamma.h>

Inheritance diagram for GamConvert8:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  GamConvert8 (float gam=1.0f)
void  SetGamma (float gam)
UWORD  Convert (UBYTE v)

Constructor & Destructor Documentation

GamConvert8 ( float  gam = 1.0f )
Remarks:
Constructor. The gamma table is built using the specified gamma setting.

Member Function Documentation

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.
UWORD Convert ( UBYTE  v ) [inline]
Remarks:
Gamma corrects the specified color.
Parameters:
UBYTE v

The color to gamma correct.
Returns:
The gamma corrected value.
{ return gtab[v]; }

GamConvert8 GamConvert8 GamConvert8 GamConvert8 GamConvert8 GamConvert8 GamConvert8 GamConvert8 GamConvert8 GamConvert8
GamConvert8 GamConvert8 GamConvert8 GamConvert8 GamConvert8 GamConvert8 GamConvert8 GamConvert8 GamConvert8 GamConvert8