Search
IGraphics.DrawLine Method (Pen, Single, Single, Single, Single)
See Also
 





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

Namespace: MindFusion.Drawing
Package: MindFusion.Common

 Syntax

C#  Copy Code

void DrawLine (
    Pen pen,
    float x1,
    float y1,
    float x2,
    float y2
)

Visual Basic  Copy Code

Sub DrawLine( _
    pen As Pen, _
    x1 As Single, _
    y1 As Single, _
    x2 As Single, _
    y2 As Single _
)

 Parameters

pen
A .NET Pen object that determines the color, width, and style of the line.
x1
The x-coordinate of the first point.
y1
The y-coordinate of the first point.
x2
The x-coordinate of the second point.
y2
The y-coordinate of the second point.

 See Also