Method DrawPolygon
DrawPolygon(Pen, ReadOnlySpan<PointD>)
Draws a polygon defined by an array of PointD structures.
void DrawPolygon(Pen pen, ReadOnlySpan<PointD> points)
Parameters
penPenPen that determines the color, width, and style of the polygon.
pointsReadOnlySpan<PointD>Array of PointD structures that represent the vertices of the polygon.