Beispiel #1
0
        private void btnLoadChart_Click(object sender, EventArgs e)
        {
            BOMChartDynamically chart = new BOMChartDynamically(this);

            chart.Show();

            Bitmap bmp = new Bitmap(chart.Width, chart.Height);

            chart.DrawToBitmap(bmp, new Rectangle(Point.Empty, bmp.Size));
            bmp.Save(Directory.GetCurrentDirectory() + @"/Charts/" + "Bubble Chart.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
        }
Beispiel #2
0
        private void btnLoadChart_Click(object sender, EventArgs e)
        {
            BOMChartDynamically chart = new BOMChartDynamically(this);
            chart.Show();

            Bitmap bmp = new Bitmap(chart.Width, chart.Height);
            chart.DrawToBitmap(bmp, new Rectangle(Point.Empty, bmp.Size));
            bmp.Save(Directory.GetCurrentDirectory() + @"/Charts/" + "Bubble Chart.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
        }