DirectX SDK

DirectDrawColorControl.GetColorControls

The DirectDrawColorControl.GetColorControls method returns the current color control settings associated with the specified overlay or primary surface. The IFlags member of the DDCOLORCONTROL type indicates which of the color control options are supported.

object.GetColorControls(colorControl As DDCOLORCONTROL)

Parameters

object
Object expression that resolves to a DirectDrawColorControl object.
colorControl
DDCOLORCONTROL type to receive the current control settings of the specified surface.

Error Codes

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

DDERR_INVALIDOBJECT
DDERR_INVALIDPARAMS
DDERR_UNSUPPORTED

Remarks

This method fails if the DirectDraw device does not support color controls.

See Also

DirectDrawColorControl.SetColorControls, Using Color Controls, Gamma and Color Controls