static Rect toRect_round(DoubleRect r) { if (r == null) null; int x = iround(r.x), y = iround(r.y); ret Rect(x, y, iround(r.x2())-x, iround(r.y2())-y); }