IDirectDrawGammaControl::GetGammaRamp method (ddraw.h)

Retrieves the red, green, and blue gamma ramps for the primary surface.

Syntax

HRESULT GetGammaRamp(
  [in]      DWORD         unnamedParam1,
  [in, out] LPDDGAMMARAMP unnamedParam2
);

Parameters

[in] unnamedParam1

Currently not used and must be set to 0.

[in, out] unnamedParam2

A pointer to a DDGAMMARAMP structure that receives the current red, green, and blue gamma ramps. Each array maps color values in the frame buffer to the color values to be passed to the digital-to-analog converter (DAC).

Return value

If the method succeeds, the return value is DD_OK.

If it fails, the method can return one of the following error values:

  • DDERR_EXCEPTION
  • DDERR_INVALIDOBJECT
  • DDERR_INVALIDPARAMS

Requirements

Requirement Value
Target Platform Windows
Header ddraw.h
Library Ddraw.lib
DLL Ddraw.dll

See also

IDirectDrawGammaControl