Example #1
0
        public override void Draw(IGraphics gp)
        {
            SolidBrush sb = new SolidBrush(ShapeColour);

            PointF[] apoints = PolyPoints.ToArray();

            gp.FillClosedCurve(sb, apoints, ShapeFillMode, Tension);
        }
Example #2
0
        public override void Draw(IGraphics gp)
        {
            SolidBrush sb = new SolidBrush(ShapeColour);
            Pen        pb = new Pen(sb);

            PointF[] apoints = PolyPoints.ToArray();

            gp.FillPolygon(sb, apoints);
        }
Example #3
0
        public override void Draw(IGraphics gp)
        {
            Pen pb = new Pen(ShapeColour);

            pb.Width = Width;

            PointF[] apoints = PolyPoints.ToArray();

            gp.DrawLines(pb, apoints);
        }