Is there a formula for converting a pixel coordina

2019-08-14 16:29发布

问题:

I'm playing around with converting some macros for a game (a tale in the desert) and found one I'm playing with trying to convert from the res it was written for (1680x1050) to my resolution (1920x1080).

The macro does a series of clicks on the screen at certain coordinates. I'd like to try to get it as close as possible if such a formula exists and then tweak from there.

Thanks guys.

回答1:

1680 * x = 1920
1050 * y = 1080

Solve for x and y and that's what you'll need to multiply your coordinates by.