get_device_gamma_ramp


bool get_device_gamma_ramp(handle device,
                           void* gamma_ramp)

This function obtains the gamma ramp of a device context.

Parameters

handle device

The handle of the device context whose gamma ramp is being queried.

void* gamma_ramp

A pointer to a buffer which is updated to contain the current gamma ramp of the color display board associated with the device context. The gamma ramp is specified in three arrays of 256 unsigned short integers. Each array contains the mapping between red,green,blue values in the frame buffer and digital analog converter values. The sequence of the arrays is red, green, blue.

Return

bool

true The function succeded.
false The call was unsuccessful.

Notes

This function obtains the gamma ramp for direct color display boards having drivers that support downloadable gamma ramps in the hardware. Not all color boards support downloadable gamma ramps.