Microsoft Windows CE 3.0  

Blitting Basics

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.

Two methods are available for copying images to a DirectDraw surface: IDirectDrawSurface5::Bltand IDirectDrawSurface5::BltFast. (A third method, IDirectDrawSurface5::BltBatch, is not implemented in this version of DirectX.) These methods are called on the destination surface and receive the source surface as a parameter. The destination and source surfaces can be one and the same, and you don't have to worry about overlapDirectDraw takes care to preserve all source pixels before overwriting them.

Of the two implemented methods, Bltis the more flexible and BltFastis the fasterbut only if there is no hardware blitter. You can determine the blitting capabilities of the hardware from the DDCAPSstructure obtained in the lpDDDriverCapsparameter of the IDirectDraw4::GetCapsmethod. If the dwCapsmember contains DDCAPS_BLT, the hardware has at least minimal blitting capabilities.



 Last updated on Tuesday, May 18, 2004

© 2004 Microsoft Corporation. All rights reserved.