How to get the best Quality

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

How to get the best Quality

Post by Luke » Thu Dec 04, 2008 4:22 pm

Hi what is the best way to get the best qulaity picture from a chart

here is the code I use. the PlotREportchart just plots the data

quantChart.Chart.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
quantChart.Chart.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAlias;
PlotReportChart(type, legends, percentile_idx, language);
Stream stream = new MemoryStream();
quantChart.Chart.Export.Image.JPEG.Height = height;
quantChart.Chart.Export.Image.JPEG.Width = width;
quantChart.Chart.Export.Image.JPEG.GrayScale = false;
quantChart.Chart.Export.Image.JPEG.Quality = 100;
quantChart.Chart.Export.Image.JPEG.Save(stream);
Image img = Image.FromStream(stream);

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

Post by Luke » Thu Dec 04, 2008 4:42 pm

Alos if the Pen.visible is false why are bar/column chart edges not very sharp?

Edges are very blurred without the pen.

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

Post by Narcís » Fri Dec 05, 2008 9:25 am

Hi Luke,

You could try using other supported image formats. Have a look at All Features\Welcome !\Exporting\Chart Picture.
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