GetGammaCorrectData

Returns the current hardware gamma correction table.

Declaration

void NAPI GA_driverFuncs::GetGammaCorrectData(
    GA_palette *pal,
    N_int32 num,
    N_int32 index)

Prototype In

snap/graphics.h

Parameters

pal

Place to return the gamma data

num

Number of gamma entries to read

index

Index of first entry to read

 

Description

This function reads the hardware gamma correction tables for 15 bit and above graphics modes. The gamma correction tables are used in these graphics modes to adjust the response curves of each of the three color guns for color matching purposes. The gamma correction tables are assumed to be 256 entries deep with three independent channels for each of red, green and blue. Each value in the gamma tables are 8-bits wide, with a range of 0 to 255. Gamma correction data is passed to the function in an array of GA_palette structures, similar to the SetPaletteData function.

Note:    If this hardware does not support gamma correction, this function will be a NULL pointer.

See Also

SetPaletteData, GetPaletteData, SetGammaCorrectData, GetGammaCorrectDataExt, SetPaletteDataExt, GetPaletteDataExt, SetGammaCorrectDataExt

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com