當前位置: 首頁>>代碼示例>>C#>>正文


C# XGraphics.DrawCurve方法代碼示例

本文整理匯總了C#中PdfSharp.Drawing.XGraphics.DrawCurve方法的典型用法代碼示例。如果您正苦於以下問題:C# XGraphics.DrawCurve方法的具體用法?C# XGraphics.DrawCurve怎麽用?C# XGraphics.DrawCurve使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PdfSharp.Drawing.XGraphics的用法示例。


在下文中一共展示了XGraphics.DrawCurve方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: RenderCurves

    /// <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);
    }
開發者ID:bossaia,項目名稱:alexandrialibrary,代碼行數:11,代碼來源:Curves.cs

示例2: RenderPage

    public override void RenderPage(XGraphics gfx)
    {
      base.RenderPage(gfx);

      XPoint[] points = new XPoint[]
      {
        new XPoint(50, 100),
        new XPoint(450, 120),
        new XPoint(550, 300),
        new XPoint(150, 380),
      };
      gfx.DrawCurve(properties.Pen2.Pen, points, properties.General.Tension);
    }
開發者ID:vronikp,項目名稱:EventRegistration,代碼行數:13,代碼來源:LinesCurve.cs

示例3: DrawCurve

    /// <summary>
    /// Draws a cardinal spline.
    /// </summary>
    void DrawCurve(XGraphics gfx, int number)
    {
      BeginBox(gfx, number, "DrawCurve");

      XPoint[] points =
        new XPoint[] { 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);

      EndBox(gfx);
    }
開發者ID:bossaia,項目名稱:alexandrialibrary,代碼行數:14,代碼來源:LinesAndCurves.cs


注:本文中的PdfSharp.Drawing.XGraphics.DrawCurve方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。