Overview | Methods | This Package | All Packages
Draws a polygon based on a specified array of vertices.
Syntax
public final void drawPolygon( Point[] vertices )
public final void drawPolygon( Point[] vertices, RasterOp op )
public final void drawPolygon( Point[] vertices, RasterOp op, int fillMode )
Parameters
vertices
An array of Point objects that define the vertices of the polygon. The array must consist of at least two points.
op
A RasterOp object that describes how to render the polygon.
fillMode
The polygon fill mode. This value must be one of the enumeration constants defined in the PolyFillMode class.
Remarks
This array specified by the vertices parameter must contain at least two elements. The polygon is drawn using the current pen and brush and is automatically closed.