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.
skibud2Asked:
Who is Participating?
 
Roshan DavisConnect With a Mentor Commented:
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
All Courses

From novice to tech pro — start learning today.