Page 1 of 1

Export Image border

Posted: Mon Jan 07, 2019 7:38 pm
by 20083691
Hi, I have a problem when exporting a graphic to an image, the border even though it does not have it, it appears in the exported image.
I send attached the two images as an example.
The code:
mGrafico.Chart.Export.Image.JPEG.Height = vAlto;
mGrafico.Chart.Export.Image.JPEG.Width = vAncho;
mGrafico.Chart.Export.Image.JPEG.Quality = 100;

I'm using TeeChart 2018 web forms.

Regards

Re: Export Image border

Posted: Tue Jan 08, 2019 7:40 am
by Christopher
Hello,
Hermes wrote:
Mon Jan 07, 2019 7:38 pm
Hi, I have a problem when exporting a graphic to an image, the border even though it does not have it, it appears in the exported image.
You should be able to eliminate this border by setting the Graphics3D.BufferStyle property to None, e.g.

Code: Select all

			var oldStyle = tChart1.Graphics3D.BufferStyle;

			tChart1.Graphics3D.BufferStyle = Steema.TeeChart.Drawing.BufferStyle.None;

			var jpeg = tChart1.Export.Image.JPEG;

			jpeg.Quality = 100;
			jpeg.Height = 300;
			jpeg.Width = 600;

			jpeg.Save(@"C:\tmp\chart2.jpeg");

			tChart1.Graphics3D.BufferStyle = oldStyle;


Re: Export Image border

Posted: Wed Jan 09, 2019 7:19 pm
by 20083691
Hi, it works fine.
thank you