Microsoft Windows CE 3.0  

Blitting with Color Keys

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.

If you want to use color keys for surfaces when calling the IDirectDrawSurface5::BltFastmethod, you must set one or both of the DDBLTFAST_SRCCOLORKEY or DDBLTFAST_DESTCOLORKEY flags in the dwTransparameter.

In order to use colors keys when calling IDirectDrawSurface5:Blt, you pass one or both of the DDBLT_KEYSRC or DDBLT_KEYDEST flags in the dwFlagsparameter. Alternatively, you can put the appropriate color values in the ddckDestColorkeyand ddckSrcColorkeymembers of the DDBLTFXstructure that is passed to the method through the lpDDBltFxparameter. In this case you must also set the DBLT_KEYSRCOVERRIDE or DDBLT_KEYDESTOVERRIDE flag, or both, in the dwFlagsparameter, so that the selected keys are taken from the DDBLTFXstructure rather than from the surface properties.

 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.