Microsoft Windows CE 3.0  

Using Color Controls

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

You set and retrieve surface color controls through the IDirectDrawColorControlinterface, which can be retrieved by querying the DirectDrawSurface object using the IID_IDirectDrawColorControlreference identifier.

Color control information is represented by a DDCOLORCONTROLstructure, which is used with both methods of the interface, IDirectDrawColorControl::SetColorControlsand IDirectDrawColorControl::GetColorControls. The first structure member, dwSize, should be set to the size of the structure, in bytes, before you use it. How you use the next member, dwFlags, depends on whether you are setting or retrieving color controls. If you are setting new color controls, set dwFlagsto a combination of the appropriate flags to indicate which of the other structure members contain valid data that you've set. However, when retrieving color controls, you don't need to set the dwFlagsbefore using itit will contain flags telling you which members are valid after the IDirectDrawColorControl::GetColorControlsmethod returns.

The remaining DDCOLORCONTROLstructure members can contain values that describe the brightness, contrast, hue, saturation, sharpness, gamma, and whether color is used.



 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved. 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@systemmanager.forsenergy.ru to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.