Beispiel #1
0
        public override void RenderPage(XGraphics gfx)
        {
            base.RenderPage(gfx);

            XGraphicsPath path = new XGraphicsPath();

            path.AddLine(50, 150, 50, 100);
            path.AddArc(50, 50, 100, 100, -180, 180);
            path.AddLine(150, 70, 200, 70);
            path.AddLine(200, 70, 200, 150);
            path.CloseFigure();
            XPen pen = new XPen(XColors.Red, 50);

            path.Widen(pen, new XMatrix(), 3);
            path.FillMode = this.properties.General.FillMode;
            gfx.DrawPath(properties.Pen2.Pen, properties.Brush2.Brush, path);
        }