Creates a region based on an array of points.
public static final Region createPolygonal( Point [] points )
public static final Region createPolygonal( Point [] points, int fillMode )
points
An array of Point objects on which to base the region.
fillMode
The fill mode with which to paint the resulting polygon. This value must be one of the enumeration constants defined in the PolyFillMode class.
Returns the newly created Region object.
The Region object returned by createPolygonal consists of the shape that results from connecting the specified points.
If no fill mode is specified in the call to this method, a default value of PolyFillMode.ALTERNATE is used.