PdfSharp.Drawing.XGraphics.DrawCurve C# (CSharp) Method

DrawCurve() public method

Draws a cardinal spline through a specified array of points.
public DrawCurve ( XPen pen, PointF points ) : void
pen XPen
points PointF
return void
    public void DrawCurve(XPen pen, PointF[] points)
    {
      DrawCurve(pen, MakeXPointArray(points), 0.5);
    }
#endif

Same methods

XGraphics::DrawCurve ( XPen pen, PointF points, double tension ) : void
XGraphics::DrawCurve ( XPen pen, System points ) : void
XGraphics::DrawCurve ( XPen pen, System points, double tension ) : void
XGraphics::DrawCurve ( XPen pen, XPoint points ) : void
XGraphics::DrawCurve ( XPen pen, XPoint points, double tension ) : void

Usage Example

コード例 #1
1
ファイル: Curves.cs プロジェクト: bossaia/alexandrialibrary
    /// <summary>
    /// Draws curves.
    /// </summary>
    void RenderCurves(XGraphics gfx)
    {
      gfx.TranslateTransform(15, 20);

      XPoint[] points = { new XPoint(20, 30), new XPoint(60, 120), new XPoint(90, 20), new XPoint(170, 90), new XPoint(230, 40) };
      XPen pen = new XPen(XColors.RoyalBlue, 3.5);
      gfx.DrawCurve(pen, points, 1);
    }
All Usage Examples Of PdfSharp.Drawing.XGraphics::DrawCurve