I need to find a control on screenshot. I have its screen coordinates. How can I convert them to coordinates on screenshot?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It all depends on the size of the screenshot and the size of your current resolution.
Let’s say the screenshot is 800×600, but your current screen resolution is 1280×720. In order to find out the X,Y position on a 800×600 image, you need to normalize the values you have of X,Y on a 1280×720 screen.
Note that the object you are looking for is also smaller on a 800×600 image. So: