Method DrawPolygon
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.Framework.dll
DrawPolygon(IDeviceContext, ReadOnlySpan<Point2Float>, IDeviceBrush, float, IStrokeStyle?)
public static void DrawPolygon(this IDeviceContext deviceContext, ReadOnlySpan<Point2Float> points, IDeviceBrush brush, float strokeWidth = 1, IStrokeStyle? strokeStyle = null)
Parameters
deviceContext
IDeviceContextpoints
ReadOnlySpan<Point2Float>brush
IDeviceBrushstrokeWidth
floatstrokeStyle
IStrokeStyle