Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working in Windows Form and don't know how to compare pictures. For example, I have a Folder in which have i a Picture. After running Form Program have to find this picture on the Screen and return coordinates of the picture. Have anyone idea how to do that ?
Posted
Comments
Wendelius 12-Sep-15 7:21am    
Can you explain in more detail what do you mean after running the program? Or do you need to know the location of the form on the screen or something else?
aarif moh shaikh 12-Sep-15 8:23am    
give some more details
dave_bulac 12-Sep-15 8:49am    
ok. For example, in Form i choose picture which coordinates I need, for example Facebook logo. Than I press button1 and program searchs on screen this logo. I will Open many Sites and one of them will be Facebook. In this moment program have to return coordiantes in textbox.
sreeyush sudhakaran 12-Sep-15 11:09am    
You can retrieve pixels by GetPixels method , and size by
System.Drawing.Image img = System.Drawing.Image.FromFile(@"c:\ggs\ggs Access\images\members\1.jpg");
int Height = img.Height;
int width = img.Width ;

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