VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.Pdf.Drawing Namespace / PdfGraphics Class / DrawCurve Method / DrawCurve(PdfPen,Single,Single,Single,Single,Single,Single,Single,Single) Method
PdfPen that determines the color, width, and style of the spline.
The x-coordinate of the start point.
The y-coordinate of the start point.
The x-coordinate of the first control point.
The y-coordinate of the first control point.
The x-coordinate of the second control point.
The y-coordinate of the second control point.
The x-coordinate of the last point.
The y-coordinate of the last point.



In This Topic
    DrawCurve(PdfPen,Single,Single,Single,Single,Single,Single,Single,Single) Method
    In This Topic
    Draws a cubic Bezier curve at specified coordinates.
    Syntax
    'Declaration
     
    Public Overloads Sub DrawCurve( _
       ByVal pen As PdfPen, _
       ByVal x0 As Single, _
       ByVal y0 As Single, _
       ByVal x1 As Single, _
       ByVal y1 As Single, _
       ByVal x2 As Single, _
       ByVal y2 As Single, _
       ByVal x3 As Single, _
       ByVal y3 As Single _
    ) 
    public void DrawCurve( 
       PdfPen pen,
       float x0,
       float y0,
       float x1,
       float y1,
       float x2,
       float y2,
       float x3,
       float y3
    )
    public: void DrawCurve( 
       PdfPen* pen,
       float x0,
       float y0,
       float x1,
       float y1,
       float x2,
       float y2,
       float x3,
       float y3
    ) 
    public:
    void DrawCurve( 
       PdfPen^ pen,
       float x0,
       float y0,
       float x1,
       float y1,
       float x2,
       float y2,
       float x3,
       float y3
    ) 

    Parameters

    pen
    PdfPen that determines the color, width, and style of the spline.
    x0
    The x-coordinate of the start point.
    y0
    The y-coordinate of the start point.
    x1
    The x-coordinate of the first control point.
    y1
    The y-coordinate of the first control point.
    x2
    The x-coordinate of the second control point.
    y2
    The y-coordinate of the second control point.
    x3
    The x-coordinate of the last point.
    y3
    The y-coordinate of the last point.
    Remarks
    The curve extends from the point (x0,y0) to the point (x3,y3), using (x1,y1) and (x2,y2) as the Bezier control points.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also