VintaSoft Imaging .NET SDK 14.0: Documentation for .NET developer
Vintasoft.Imaging.Drawing Namespace / DrawingEngine Class / DrawLine Methods / DrawLine(IDrawingPen,PointF,PointF) Method
Syntax Requirements SeeAlso
In This Topic
    DrawLine(IDrawingPen,PointF,PointF) 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 p1
    The System.Drawing.PointF structure that represents the first point to connect.
    As System.Drawing.PointF, _
    ByVal p2
    The System.Drawing.PointF structure that represents the second point to connect.
    As System.Drawing.PointF _
    )
    public void DrawLine(
    IDrawingPen pen,
    System.Drawing.PointF p1,
    System.Drawing.PointF p2
    )
    public: void DrawLine(
    IDrawingPen* pen,
    System.Drawing.PointF p1,
    System.Drawing.PointF p2
    )
    public:
    void DrawLine(
    IDrawingPen^ pen,
    System.Drawing.PointF p1,
    System.Drawing.PointF p2
    )

    Parameters

    pen
    The pen that determines the color, width, and style of the line.
    p1
    The System.Drawing.PointF structure that represents the first point to connect.
    p2
    The System.Drawing.PointF structure that represents the second point to connect.
    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