Draw a polygon on the specified image.

Namespace:  AForge.Imaging
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public static void Polygon(
	UnmanagedImage image,
	List<IntPoint> points,
	Color color
)

Parameters

image
Type: AForge.Imaging..::.UnmanagedImage
Source image to draw on.
points
Type: System.Collections.Generic..::.List<(Of <(IntPoint>)>)
Points of the polygon to draw.
color
Type: System.Drawing..::.Color
Polygon's color.

Remarks

The method draws a polygon by connecting all points from the first one to the last one and then connecting the last point with the first one.

See Also