How to get the best Quality
Posted: 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);
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);