[]
Draws a polygon specified by an array of points, using a specified line color, width and style.
If the value of lineStyle parameter is not Solid, the polygon is drawn with a Pen having LineCap set to Square instead of Flat.
public void DrawPolygon(PointF[] points, Color lineColor, float lineWidth, DashStyle lineStyle = DashStyle.Solid)
Public Sub DrawPolygon(points As PointF(), lineColor As Color, lineWidth As Single, Optional lineStyle As DashStyle = DashStyle.Solid)
Type | Name | Description |
---|---|---|
PointF[] | points | An array of points specifying the polygon. |
Color | lineColor | The line color. |
float | lineWidth | The line width. |
DashStyle | lineStyle | The line style (solid by default). |
Draws a polygon specified by an array of points, using a specified line color, width and dash pattern.
If the dashPattern array contains two or more items, the polygon is drawn with a Pen having LineCap set to Square instead of Flat.
public void DrawPolygon(PointF[] points, Color lineColor, float lineWidth, float[] dashPattern)
Public Sub DrawPolygon(points As PointF(), lineColor As Color, lineWidth As Single, dashPattern As Single())
Type | Name | Description |
---|---|---|
PointF[] | points | An array of points specifying the polygon. |
Color | lineColor | The line color. |
float | lineWidth | The line width. |
float[] | dashPattern | The dash pattern. |
Draws a polygon specified by an array of points, using a specified pen.
public void DrawPolygon(PointF[] points, Pen pen)
Public Sub DrawPolygon(points As PointF(), pen As Pen)
Type | Name | Description |
---|---|---|
PointF[] | points | An array of points specifying the polygon. |
Pen | pen | The pen to use. |
Draws a polygon specified by an array of points, using a specified line color, width and style.
If the value of lineStyle parameter is not Solid, the polygon is drawn with a Pen having LineCap set to Square instead of Flat.
public void DrawPolygon(Quadrilateral quadrilateral, Color lineColor, float lineWidth, DashStyle lineStyle = DashStyle.Solid)
Public Sub DrawPolygon(quadrilateral As Quadrilateral, lineColor As Color, lineWidth As Single, Optional lineStyle As DashStyle = DashStyle.Solid)
Type | Name | Description |
---|---|---|
Quadrilateral | quadrilateral | A quadrilateral specifying the polygon. |
Color | lineColor | The line color. |
float | lineWidth | The line width. |
DashStyle | lineStyle | The line style (solid by default). |
Draws a polygon specified by an array of points, using a specified line color, width and dash pattern.
If the dashPattern array contains two or more items, the polygon is drawn with a Pen having LineCap set to Square instead of Flat.
public void DrawPolygon(Quadrilateral quadrilateral, Color lineColor, float lineWidth, float[] dashPattern)
Public Sub DrawPolygon(quadrilateral As Quadrilateral, lineColor As Color, lineWidth As Single, dashPattern As Single())
Type | Name | Description |
---|---|---|
Quadrilateral | quadrilateral | A quadrilateral specifying the polygon. |
Color | lineColor | The line color. |
float | lineWidth | The line width. |
float[] | dashPattern | The dash pattern. |
Draws a polygon specified by an array of points, using a specified pen.
public void DrawPolygon(Quadrilateral quadrilateral, Pen pen)
Public Sub DrawPolygon(quadrilateral As Quadrilateral, pen As Pen)
Type | Name | Description |
---|---|---|
Quadrilateral | quadrilateral | A quadrilateral specifying the polygon. |
Pen | pen | The pen to use. |