macaca icon indicating copy to clipboard operation
macaca copied to clipboard

希望macaca java api增加一个获取手机分辨率的方法。现在getWindowSize取到的是窗口大小

Open rill opened this issue 7 years ago • 5 comments

截屏获取到的图像是原始分辨率的图像,而getWindowSize取到的是窗口大小,。我这边有个需求是获取屏幕指定一个位置的图像,无法根据windowSize直接去计算位置。希望家一个获取分辨率的方法

  • Macaca Version: 2.0.30

  • Macaca Doctor Logs:

  • Operate System: Mac

  • Programming Language: java

rill avatar May 23 '18 04:05 rill

This is the translated issue:


Hope macaca java api to increase a cell phone resolution. GetWindowSize is now the size of the window

The image captured by the screen capture is the original resolution image, and getWindowSize is the window size. There is a requirement on my side to get an image with a specified position on the screen. I can't directly calculate the position based on windowSize. Hope home a way to get resolution

  • Macaca Version: 2.0.30

  • Macaca Doctor Logs:

  • Operate System: Mac

  • Programming Language: Java

macaca-bot avatar May 23 '18 04:05 macaca-bot

iOS 平台还是 Android呢?

xudafeng avatar Oct 23 '18 07:10 xudafeng

This is the translated issue comment: @xudafeng


Is the iOS platform or Android?

macaca-bot avatar Oct 23 '18 07:10 macaca-bot

ios下

rill avatar Nov 07 '18 02:11 rill

This is the translated issue comment: @rill


Under ios

macaca-bot avatar Nov 07 '18 02:11 macaca-bot