本文整理汇总了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);
}