Overview | Methods | Fields | ThisPackage | All Packages
OverviewMethodsFieldsThisPackageAll Packages
Rectangle.union
Retrieves a Rectangle object that represents the smallest rectangle that contains two specified rectangular areas.
Syntax
public static Rectangle union( Rectangle a, Rectangleb**)**
Parameters
a
A Rectangle object that specifies the first rectangle in the union.
b
A Rectangle object that specifies the second rectangle in the union.
Return Value
Returns a Rectangle object that represents the union of the two specified rectangles.