This documentation is for the old version. Go to the latest Graphics Mill docs

GdiGraphics.DrawLine Method (Pen, Single, Single, Single, Single)

Draws a line.

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub DrawLine ( _
	pen As Pen, _
	x1 As Single, _
	y1 As Single, _
	x2 As Single, _
	y2 As Single _
)
C#
public void DrawLine(
	Pen pen,
	float x1,
	float y1,
	float x2,
	float y2
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

Pen object which is used to draw a line.
x1

Type: System.Single

X-coordinate of the start point of the line.
y1

Type: System.Single

Y-coordinate of the start point of the line.
x2

Type: System.Single

X-coordinate of the end point of the line.
y2

Type: System.Single

Y-coordinate of the end point of the line.

Remarks

In this method line is defined with two points which should be connected with this line.

All the coordinates are measured in units specified with Unit property.

See Also

Reference