Method DrawLine
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.Core.dll
DrawLine(IDeviceContext, float, float, float, float, IDeviceBrush, float, IStrokeStyle?)
public static void DrawLine(this IDeviceContext deviceContext, float x1, float y1, float x2, float y2, IDeviceBrush brush, float strokeWidth = 1, IStrokeStyle? strokeStyle = null)
Parameters
deviceContext
IDeviceContextx1
floaty1
floatx2
floaty2
floatbrush
IDeviceBrushstrokeWidth
floatstrokeStyle
IStrokeStyle