Accord.Imaging.Drawing.Polygon C# (CSharp) Method

Polygon() public static method

Draw a polygon on the specified image.

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.

public static Polygon ( BitmapData imageData, List points, Color color ) : void
imageData System.Drawing.Imaging.BitmapData Source image data to draw on.
points List Points of the polygon to draw.
color Color Polygon's color.
return void
        public static void Polygon(BitmapData imageData, List<IntPoint> points, Color color)
        {
            Polygon(new UnmanagedImage(imageData), points, color);
        }

Same methods

Drawing::Polygon ( UnmanagedImage image, List points, Color color ) : void