/// <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); }
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); }
/// <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); }