本文整理匯總了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);
}
示例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);
}
示例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);
}