Solved

Copy Window's DC to a buffer

Posted on 2002-07-10
3
468 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

728 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