Rectangle
目标区域相对于整个屏幕或窗口的位置,如不填,则表示整个屏幕或窗口。
public static class Rectangle { public int x = 0; public int y = 0; public int width = 0; public int height = 0; public Rectangle() { x = 0; y = 0; width = 0; height = 0; } public Rectangle(int x_, int y_, int width_, int height_) { x = x_; y = y_; width = width_; height = height_; } };
属性
- x
- 左上角的横向偏移。
- y
- 左上角的纵向偏移。
- width
- 目标区域的宽度。
- height
- 目标区域的高度。