Skip to content

IGraphicsContext.DrawLine method (1 of 3)

Draws a line using a pen.

public void DrawLine(Point start, Point end, Pen pen)

Draws a line between two points.

public void DrawLine(Point start, Point end, Color color, double thickness = 1m)

Draws a pixel-snapped line.

public void DrawLine(Point start, Point end, Color color, double thickness, bool pixelSnap)