int rectX = (int)Math.round(dstRect.getMinX());
int rectY = (int)Math.round(dstRect.getMinY());
int rectW = (int)Math.round(dstRect.getMaxX() - rectX);
int rectH = (int)Math.round(dstRect.getMaxY() - rectY);
rectangleList = new LinkedList();
rectangleList.addLast((Object)new Rectangle(rectX, rectY,
rectW, rectH));
} else if (theShape instanceof Polygon) { // Polygon.
rectangleList = polygonToRunLengthList(clip, (Polygon)theShape);
if (mergeRectangles && rectangleList != null) {
rectangleList = mergeRunLengthList(rectangleList);