Platform SDK: DirectX

DirectDrawGammaControl.GetGammaRamp

The DirectDrawGammaControl.GetGammaRamp method retrieves the red, green, and blue gamma ramps for the primary surface.

object.GetGammaRamp( _ 
    flags As CONST_DDSGRFLAGS, _ 
    gammaRamp As DDGAMMARAMP)

Parameters

object
Object expression that resolves to a DirectDrawGammaControl object.
flags
One of the constants of the CONST_DDSGRFLAGS enumeration indicating if gamma calibration is desired. Set this parameter to DDSGR_CALIBRATE to request that the calibrator adjust the gamma ramp according to the physical properties of the display, making the result identical on all systems. If calibration is not needed, set this parameter to 0.
gammaRamp
DDGAMMARAMP type to be filled with the current red, green, and blue gamma ramps. This type maps color values in the frame buffer to the color values to be passed to the digital-to-analog converter (DAC).

Error Codes

If the method fails, it raises an error, and Err.Number can be set to one of the following values:

DDERR_EXCEPTION
DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS

See Also

DirectDrawGammaControl.SetGammaRamp, Gamma and Color Controls