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
Export Image border
Export Image border
- Attachments
-
- ErrorExportImagen_Result.png (365.25 KiB) Viewed 8604 times
-
- ErrorExportImagen_Orig.png (72.5 KiB) Viewed 8604 times
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Export Image border
Hello,
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;
Best Regards,
Christopher Ireland / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Export Image border
Hi, it works fine.
thank you
thank you