Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 487
  • Last Modified:

Copy Window's DC to a buffer

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
skibud2
Asked:
skibud2
  • 2
1 Solution
 
Roshan DavisCommented:
Use GetDIBits API.

Roshmon
0
 
skibud2Author Commented:
what do I use for the handle of the bit map?
0
 
Roshan DavisCommented:
create a bitmap compatible to hDC using CreateCompatibleBitmap API

Roshmon
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now