Is there a formula for converting a pixel coordinate in 1680x1050 to 1920x1080

风流意气都作罢 提交于 2019-12-11 05:27:06

问题


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.



来源:https://stackoverflow.com/questions/8570370/is-there-a-formula-for-converting-a-pixel-coordinate-in-1680x1050-to-1920x1080

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!