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

GdiGraphics.DrawLine Method (Pen, PointF, PointF)

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 PointF, _
        point2
As PointF _
)
C#
public void DrawLine(
       
Pen pen,
       
PointF point1,
       
PointF point2
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

Pen object which is used to draw a line.
point1

Type: System.Drawing.PointF

The start point of the line.
point2

Type: System.Drawing.PointF

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