Exemplo n.º 1
0
        public void DrawAndFillPolygon(Pen pen, Brush brush, TPointF[] points, TClippingStyle clippingStyle)
        {
            switch (clippingStyle)
            {
            case TClippingStyle.None:
                Canvas.DrawAndFillPolygon(pen, brush, points);
                break;

            default:
                if (brush != null)
                {
                    Canvas.ClipPolygon(points, clippingStyle == TClippingStyle.Exclude);
                    SetClipped(true, RectangleF.Empty);
                }
                break;
            }
        }