Microsoft Windows CE 3.0  

Color Keying

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.

DirectDraw supports source and destination color keying for blits and overlay surfaces. Color keys enable you to display one image on top of another selectively, so that only certain pixels from the foreground rectangle are displayed, or only certain pixels on the background rectangle are overwritten.

You supply a single color key or a range of colors for source or destination color keying by calling the IDirectDrawSurface5::SetColorKeymethod.

For more information about color keying, see the following topics: