static Rect rect(int x, int y, int w, int h) { ret Rect(x, y, w, h); } static Rect rect(Pt p, int w, int h) { ret Rect(p.x, p.y, w, h); } static Rect rect(int w, int h) { ret Rect(0, 0, w, h); } ifclass BWImageAndRect static Rect rect(BWImageAndRect r) { ret r == null ? null : r.rect; } endif