Table of Contents

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 IDeviceContext
x1 float
y1 float
x2 float
y2 float
brush IDeviceBrush
strokeWidth float
strokeStyle IStrokeStyle