1
IM使用在手机这个命令input tap x y
(input tap 600 500
)与720 x 1280
屏幕分辨率我怎么转换x y
所以这将是同样的观点在手机的1080 x 1920
的分辨率。由于转换X和Y像素基础上,屏幕尺寸
IM使用在手机这个命令input tap x y
(input tap 600 500
)与720 x 1280
屏幕分辨率我怎么转换x y
所以这将是同样的观点在手机的1080 x 1920
的分辨率。由于转换X和Y像素基础上,屏幕尺寸
这个伪代码应该得到你要寻找的值:
resolution_width = 720;
resolution_height = 1280;
input_x = 600;
input_y = 500;
target_width = 1080;
target_height = 1920;
percent_width = input_x/resolution_width;
percent_height = input_y/resolution_height;
output_x = target_width * percent_width;
output_y = target_height * percent_height;