Retrieves a Rectangle object that represents the smallest rectangle that contains two specified rectangular areas.
public static Rectangle union( Rectangle a, Rectangle b)
a
A Rectangle object that specifies the first rectangle in the union.
b
A Rectangle object that specifies the second rectangle in the union.
Returns a Rectangle object that represents the union of the two specified rectangles.