Platform SDK: DirectX

DirectDrawColorControl.SetColorControls

The DirectDrawColorControl.SetColorControls method sets the color-control settings associated with the specified overlay or primary surface.

object.SetColorControls(colorControl As DDCOLORCONTROL)

Parameters

object
Object expression that resolves to a DirectDrawColorControl object.
colorControl
DDCOLORCONTROL type that contains the new values to be applied to 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

See Also

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