Share via


Blitting with Color Keys

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

In order to use colors keys when calling IDirectDrawSurface::Blt, you pass one or both of the DDBLT_KEYSRC or DDBLT_KEYDEST flags in the dwFlags parameter.

Alternatively, you can put the appropriate color values in the ddckDestColorkey and ddckSrcColorkey members of the DDBLTFX structure that is passed to the method through the lpDDBltFx parameter.

In this case you must also set the DBLT_KEYSRCOVERRIDE or DDBLT_KEYDESTOVERRIDE flag, or both, in the dwFlags parameter, so that the selected keys are taken from the DDBLTFX structure rather than from the surface properties.

See Also

Concepts

Transparent Blitting