PeachDrawing.Core

PeachDrawing.Core.Canvas

Canvas.DrawLine(Pen, double, double, double, double) Method

Draws a line connecting the two points specified by the coordinate pairs.

public abstract void DrawLine(PeachDrawing.Core.Pen pen, double x1, double y1, double x2, double y2);

Parameters

pen Pen

Pen that determines the color, width, and style of the line.

x1 System.Double

The x-coordinate of the first point.

y1 System.Double

The y-coordinate of the first point.

x2 System.Double

The x-coordinate of the second point.

y2 System.Double

The y-coordinate of the second point.