Creates a rounded rectangular region based on a specified bounding rectangle.
public static final Region createRoundedRectangular( Rectangle rect, int radius )
public static final Region createRoundedRectangular( int x, int y, int width, int height, int radius )
rect
The rectangular area within which to draw the rounded rectangle.
x
The x-coordinate of the rectangular area.
y
The y-coordinate of the rectangular area.
width
The width of the rectangular area.
height
The height of the rectangular area.
radius
The radius of the ellipse used to draw the rounded corners.
Returns a new Region object that defines the rounded rectangle.