Click or drag to resize
DrawingWindowDrawFilledPolygon Method
Draws a filled polygon with the vertices (X0, Y0), (X1, Y1), ..., (XN-1, YN-1).

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public DrawingVisual DrawFilledPolygon(
	double[] x,
	double[] y
)

Parameters

x
Type: SystemDouble
an array of all the X-coordinates of the polygon
y
Type: SystemDouble
an array of all the Y-coordinates of the polygon

Return Value

Type: DrawingVisual
A drawing visual as handle to the drawing
Exceptions
ExceptionCondition
ArgumentExceptionunless x[] and y[] are of the same length
See Also