VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Drawing Namespace / DrawingEngine Class / DrawLine Methods / DrawLine(IDrawingPen,Single,Single,Single,Single) Method
Syntax Requirements SeeAlso
In This Topic
    DrawLine(IDrawingPen,Single,Single,Single,Single) Method (DrawingEngine)
    In This Topic
    Draws a line connecting two System.Drawing.PointF structures.
    Syntax
    'Declaration
    
    Public Overloads Sub DrawLine( _
    ByVal pen
    The pen that determines the color, width, and style of the line.
    As IDrawingPen, _
    ByVal x1
    The x-coordinate of the first point.
    As Single, _
    ByVal y1
    The y-coordinate of the first point.
    As Single, _
    ByVal x2
    The x-coordinate of the second point.
    As Single, _
    ByVal y2
    The y-coordinate of the second point.
    As Single _
    )
    public void DrawLine(
    IDrawingPen pen,
    float x1,
    float y1,
    float x2,
    float y2
    )
    public: void DrawLine(
    IDrawingPen* pen,
    float x1,
    float y1,
    float x2,
    float y2
    )
    public:
    void DrawLine(
    IDrawingPen^ pen,
    float x1,
    float y1,
    float x2,
    float y2
    )

    Parameters

    pen
    The pen 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.
    Requirements

    Target Platforms: .NET9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also