Solved

Copy Window's DC to a buffer

Posted on 2002-07-10
3
437 Views
Last Modified: 2013-11-20
I have a window's handle that is displaying an image. I know this image's size. How can I copy the data of that image to a buffer? I know how to use the bitblt function to copy from window to window.
0
Comment
Question by:skibud2
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
Roshan Davis earned 40 total points
ID: 7145188
Use GetDIBits API.

Roshmon
0
 

Author Comment

by:skibud2
ID: 7146592
what do I use for the handle of the bit map?
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 7148246
create a bitmap compatible to hDC using CreateCompatibleBitmap API

Roshmon
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sum67 challenge 35 93
sumHeights  challenge 17 65
Can not remove SSL certificate on iPhone 6 - iOS10.2 12 250
how to use laptop or pad camera in vb.net windows application 2 49
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now