Example #1
0
        public void DrawPolygon(int[] xPoints, int[] yPoints, int nPoints)
        {
            int         right  = FindBiggest(xPoints);
            int         bottom = FindBiggest(yPoints);
            int         left   = FindSmallest(xPoints);
            int         top    = FindSmallest(yPoints);
            HSSFPolygon shape  = escherGroup.CreatePolygon(new HSSFChildAnchor(left, top, right, bottom));

            shape.SetPolygonDrawArea(right - left, bottom - top);
            shape.SetPoints(AddToAll(xPoints, -left), AddToAll(yPoints, -top));
            shape.SetLineStyleColor(foreground.R, foreground.G, foreground.B);
            shape.LineWidth = (0);
            shape.IsNoFill  = (true);
        }