## Printer Device Driver

[prev][next][parent][TOC]

### GplGammaColorTableToGamma2

Description

For 8-bit pels or less, replaces an RGB color value in the PBITMAPINFO2 argbColor[0..256] structure with a gamma-corrected color value.

Format

    APIRET APIENTRY GplGammaColorTableToGamma2( PBYTE          pbGamma,

                                                PBITMAPINFO2   pbmi );

Parameters

pbGamma (PBYTE) A byte pointer to a 768-byte buffer.

pbGamma can be used as a PRGB2 instead of a PBYTE.

pbmi (PBITMAPINFO2) PBITMAPINFO2 is assumed to have a valid RGB2 color table as input. The following PBITMAPINFO2 fields are used:

cBitCount Bits per pel.

argbColor When cBitCount is 8 or less, this parameter must include values for 2 to the power of cBitCount (2**cBitCount).

Returns

Success 0
Failure INVALID_PARAMETER