Export: saved picture has black background

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Oli
Newbie
Newbie
Posts: 42
Joined: Fri Jan 13, 2012 12:00 am

Export: saved picture has black background

Post by Oli » Sat Jan 21, 2012 2:32 am

Hi,

I am using the export feature to save charts. But the charts are saved with black background, no matter what graphic format I choose. My line of code to export is:
NewChart.Export.Image.Bitmap.Save(SaveFileDialog.FileName)

Your help is appreciated.

Oliver

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Export: saved picture has black background

Post by Sandra » Mon Jan 23, 2012 11:51 am

Hello Oliver,

I couldn't reproduce using last version of TeeChart.Net and next code:

Code: Select all

        Steema.TeeChart.Styles.Line Line1;
        Steema.TeeChart.Editor editor1;
        private void InitializeChart()
        {
            Line1 = new Line(tChart1.Chart);
            Line1.FillSampleValues();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Steema.TeeChart.Drawing.BufferStyle buffer = tChart1.Graphics3D.BufferStyle;
            tChart1.Graphics3D.BufferStyle = Steema.TeeChart.Drawing.BufferStyle.None;
            tChart1.Export.Image.Bitmap.Save(@"tChart1.bmp");
            tChart1.Export.Image.GIF.Save(@"tChart1.gif");
            tChart1.Export.Image.JPEG.Save(@"tChart1.jpeg");
            tChart1.Export.Image.PNG.Save(@"tChart1.png");
            tChart1.Graphics3D.BufferStyle = buffer;
      }
Can you tell us, if you can reproduce the problem using previous code? On the other hand, can you tell which version of TeeChart are you using?

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply