Answer the question
In order to leave comments, you need to log in
How to adapt coordinates to different window resolutions?
Good day.
The question is most likely very stupid, but my school and university mathematics skills refuse to help in this matter. Maybe I'm just stupid someone will still help in this matter.
Essence:
There is an application window with a size of 1024x768. In it (only for example) in the center there is a button at coordinates 512x384. The fact that it is in the center in this case is for example and convenience, and it can be anywhere, but its coordinates relative to a 1024x768 window are known.
Next, there is a window of the same application, but the size is 1920x1080. It also has the same button in the center, but its coordinates are not known in this case.
Is it possible to find out the position of a button in a window of size 1920x1080, while it is known that this button in a window of size 1024x768 is located at coordinates 512x384?
Window size 1 = 1024x768
Button A = 512x384
Window size 1 = 1920x1080
Button A = ?
Answer the question
In order to leave comments, you need to log in
The fact that it is in the center in this case is for example and convenience, and it can be anywhere, but its coordinates relative to a 1024x768 window are known.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question