Region.createPolygonal

Overview | Methods | This Package | All Packages

Region.createPolygonal

Creates a region based on an array of points.

Syntax

public static final Region createPolygonal( Point [] points )

public static final Region createPolygonal( Point [] points, int fillMode )

Parameters

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.

Return Value

Returns the newly created Region object.

Remarks

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.