Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 503
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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