コード例 #1
0
ファイル: Graphics.cs プロジェクト: datadiode/ReoGrid
        public void FillPolygon(IColor color, params Point[] points)
        {
            if (!color.IsTransparent)
            {
                var b = resourceManager.GetBrush(color.ToSolidColor());

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

                this.g.FillPolygon(b, wfpoints);
            }
        }