IDirectDrawGammaControl interface (ddraw.h)
Applications use the methods of the IDirectDrawGammaControl interface to adjust the red, green, and blue gamma ramp levels of the primary surface. This section is a reference to the methods of this interface.
Inheritance
The IDirectDrawGammaControl interface inherits from the IUnknown interface. IDirectDrawGammaControl also has these types of members:
Methods
The IDirectDrawGammaControl interface has these methods.
IDirectDrawGammaControl::GetGammaRamp Retrieves the red, green, and blue gamma ramps for the primary surface. |
IDirectDrawGammaControl::SetGammaRamp Sets the red, green, and blue gamma ramps for the primary surface. |
Remarks
The IDirectDrawGammaControl interface is supported by DirectDrawSurface objects. That is, you can retrieve a pointer to the IDirectDrawGammaControl interface by calling the IUnknown::QueryInterface method of a DirectDrawSurface object and by specifying the IID_IDirectDrawGammaControl reference identifier in the riid parameter.
You can use the LPDIRECTDRAWGAMMACONTROL data type to declare a variable that contains a pointer to an IDirectDrawGammaControl interface. The Ddraw.h header file declares the data type with the following code:
typedef struct IDirectDrawGammaControl FAR *LPDIRECTDRAWGAMMACONTROL;
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | ddraw.h |