Page 1 of 1
Borders on Image Export from the chart
Posted: Thu Aug 28, 2008 2:15 pm
by 13047001
when exporting an image I always get a border around it, how can I remove this?
Stream stream = new MemoryStream();
ImageExportFormat image = chart.Export.Image.PNG;
image.Width = width;
image.Height = height;
image.Save(stream);
Image img = Image.FromStream(stream);
Have Tried
chart.Panel.Bevel.Inner = Steema.TeeChart.Drawing.BevelStyles.None;
chart.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
chart.Panel.Pen.Visible = false;
chart.Panel.BorderRound = 0;
but I still get a border round the image
Posted: Thu Aug 28, 2008 2:37 pm
by narcis
Hi Ced,
I'm not able to reproduce the issue here using latest TeeChart for .NET v3 maintenance release available at the client area. Which TeeChart version are you using? If you are still not using it, could you please try with latest version? If problem persists could you send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://
www.steema.net/steema.public.attachments newsgroup or at our
upload page.
Thanks in advance.
posted file
Posted: Thu Aug 28, 2008 2:54 pm
by 13047001
uc.zip gives border
Posted: Thu Aug 28, 2008 3:14 pm
by 13047002
Just updated to your latest download for .net, still same problem
Posted: Thu Aug 28, 2008 3:24 pm
by narcis
Hi Ced,
Thanks for the example. I've found that line below at UserControl1.designer.cs:
Code: Select all
this.chart.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
and same at UserControl1.cs:
Code: Select all
chart.Panel.Bevel.Outer = Steema.TeeChart.Drawing.BevelStyles.None;
Cause the problem. Removing them makes the border disappear.
Anyway, I've added this issue to the defect list (TF02013360) to be investigated for next releases.
Posted: Thu Aug 28, 2008 3:43 pm
by 13047002
yes but that only gets rid of the left and top border, what about bottom and right? tried removing both inner and outer bevel=none.
Posted: Thu Aug 28, 2008 3:49 pm
by narcis
Hi Luke,
Yes, I noticed that. That's one of the reasons I added this to be enhanced.