Example #1
0
        public static void PaintChart(System.Drawing.Graphics g, System.Drawing.Rectangle r, FarPoint.Win.Spread.Appearance appearance, GridElement Element)
        {
            ChartPainter chartPainter = Element.Value as ChartPainter;

            chartPainter.UpdateDataSource();
            IPainter Painter = chartPainter as IPainter;
            Image    image   = Painter.Paint(r.Width, r.Height);

            g.DrawImage(image, r.X, r.Y, r.Width, r.Height);
        }