Borders on Image Export from the chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Ced
Newbie
Newbie
Posts: 4
Joined: Thu Oct 11, 2007 12:00 am

Borders on Image Export from the chart

Post by Ced » Thu Aug 28, 2008 2:15 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Aug 28, 2008 2:37 pm

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.
Best Regards,
Narcís Calvet / 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

Ced
Newbie
Newbie
Posts: 4
Joined: Thu Oct 11, 2007 12:00 am

posted file

Post by Ced » Thu Aug 28, 2008 2:54 pm

uc.zip gives border

Luke
Newbie
Newbie
Posts: 68
Joined: Thu Oct 11, 2007 12:00 am

Post by Luke » Thu Aug 28, 2008 3:14 pm

Just updated to your latest download for .net, still same problem

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Aug 28, 2008 3:24 pm

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.
Best Regards,
Narcís Calvet / 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

Luke
Newbie
Newbie
Posts: 68
Joined: Thu Oct 11, 2007 12:00 am

Post by Luke » Thu Aug 28, 2008 3:43 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Aug 28, 2008 3:49 pm

Hi Luke,

Yes, I noticed that. That's one of the reasons I added this to be enhanced.
Best Regards,
Narcís Calvet / 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