Rectangle2D.intersect(bounds, clipR, bounds);
}
// Factor in the mask, if any
if (mask != null) {
Rectangle2D maskR = mask.getBounds2D();
if (maskR.intersects(bounds))
Rectangle2D.intersect(bounds, maskR, bounds);
}
}
bounds = normalizeRectangle(bounds);