Solved

Copy Window's DC to a buffer

Posted on 2002-07-10
3
428 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 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

17 Experts available now in Live!

Get 1:1 Help Now