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

GdiGraphics.DrawLine Method (Pen, Point, Point)

Draws a line.

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

Syntax

Visual Basic
Public Sub DrawLine ( _
        pen
As Pen, _
        point1
As Point, _
        point2
As Point _
)
C#
public void DrawLine(
       
Pen pen,
       
Point point1,
       
Point point2
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

Pen object which is used to draw a line.
point1

Type: System.Drawing.Point

The start point of the line.
point2

Type: System.Drawing.Point

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