INFO: Blitting Between DCs for Different Devices Is Unsupported (195830)
The information in this article applies to:
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
- Microsoft Platform Software Development Kit (SDK) 1.0
- Microsoft Windows XP Home Edition
- Microsoft Windows XP Professional
This article was previously published under Q195830 SUMMARY
Using a device-dependent blitting operation, such as BitBlt() or
StretchBlt(), to transfer data from a DC supported by one device to a DC
supported by another device is not supported. While blitting between
different devices might work with some driver pairs, you cannot rely on it
to work between all driver pairs, so you should avoid it. The most common
problem scenario occurs when the code for displaying a memory bitmap uses
StretchBlt() to display the image to a printer DC.
To avoid this problem, convert the memory bitmap from its device-dependent
form into a device-independent form by using the function GetDIBits(). You
can display The device-independent image to the second device by using
either SetDIBits() or StretchDIBits().
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbBitmap kbGDI kbinfo KB195830 |
---|
|