static Rect pointsRect(int x1, int y1, int x2, int y2) { ret new Rect(x1, y1, x2-x1, y2-y1); }