提交 22408cd4 编写于 作者: S serb

8203955: Improve robot support

Reviewed-by: prr, psadhukhan, rhalade, skoivu
上级 a6b361f9
...@@ -391,6 +391,7 @@ public class Robot { ...@@ -391,6 +391,7 @@ public class Robot {
* @return Color of the pixel * @return Color of the pixel
*/ */
public synchronized Color getPixelColor(int x, int y) { public synchronized Color getPixelColor(int x, int y) {
checkScreenCaptureAllowed();
Color color = new Color(peer.getRGBPixel(x, y)); Color color = new Color(peer.getRGBPixel(x, y));
return color; return color;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册