Esempio n. 1
0
        public void DrawPolygon(SolidColor color, float lineWidth, LineStyles lineStyle, params Point[] points)
        {
            if (!color.IsTransparent)
            {
                var p = resourceManager.GetPen(color, lineWidth, ToGDILineStyle(lineStyle));

                var wfpoints = new WFPointF[points.Length];
                for (int i = 0; i < points.Length; i++)
                {
                    wfpoints[i] = points[i];
                }

                this.g.DrawPolygon(p, wfpoints);
            }
        }