Click here to Skip to main content
15,909,039 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have the following working giving me exactly the image I am looking for.

However, how do I get the contents to be saved in HBITMAP for me to be able to compare 2 images faster?

MIDL
BitBlt(MemDC, 10, 60, 12, 26,
    DlgDC, 163, 94, SRCCOPY);


Any help would be greatly appreciated.
Posted
Comments
Richard MacCutchan 9-Sep-10 10:41am    
Since you have the HBITMAP selected into your DC you must also have the actual bitmap somewhere in memory. Maybe you need to reword your question.

there are two ways bitmap in meory : DDB and DIB,
DDB you can't get contents of image, DIB you can do it.
and maybe you doesn't provide enough information about your qestion!
 
Share this answer
 
Comments
Niklas L 11-Sep-10 3:16am    
"DDB you can't get contents of image"

Since when? I haven't looked at the API's for over a month. Did it change?
Have a look at the GetDIBits[^] function to see how to get comparable image data.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900