Help and Support
 

powered byLive Search

INFO: Blitting Between DCs for Different Devices Is Unsupported

Article ID:195830
Last Review:February 22, 2007
Revision:2.3
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().

MORE INFORMATION

For more information on how to convert between device-dependent bitmaps (DDBs) and device-independent bitmaps (DIBs), see the following KB article: For additional information , please click the article number below to view the article in the Microsoft Knowledge Base:
80080 (http://support.microsoft.com/kb/80080/EN-US/) HOWTO: Convert Between Device-Dependent Bitmaps and DIBs

APPLIES TO
Microsoft Windows 2000 Server
Microsoft Windows 2000 Advanced Server
Microsoft Windows 2000 Professional Edition
Microsoft Platform Software Development Kit-January 2000 Edition
Microsoft Windows XP Home Edition
Microsoft Windows XP Professional

Back to the top

Keywords: 
kbbitmap kbgdi kbinfo KB195830

Article Translations

 

Related Support Centers

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.