This is a migrated thread and some comments may be shown as answers.

Save high quality graphic?

1 Answer 9 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
James asked on 10 Feb 2016, 10:49 PM


I'm using the RadChartView, but guess this issue relates to any control, so am posting here.

I'm using the ExportExtensions.ExportToImage to save the chart to disk. However, it's not exactly publication quality. Is there a way of increasing the resolution on export? I'll paste below the code I'm using.

Thanks, James.


SaveFileDialog dialog = new SaveFileDialog();
            dialog.DefaultExt = "*.png";
            dialog.Filter = "Files(*.png)|*.png";
            if (!(bool)dialog.ShowDialog())
            Telerik.Windows.Media.Imaging.PngBitmapEncoder enc = new Telerik.Windows.Media.Imaging.PngBitmapEncoder();
            using (Stream fileStream = dialog.OpenFile())
                if (CircularGraphCrosstabs.Visibility == System.Windows.Visibility.Visible)
                    Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(CircularGraphCrosstabs, fileStream, enc);
                    Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(GridCrosstabsChart, fileStream, enc);


1 Answer, 1 is accepted

Sort by
Telerik team
answered on 15 Feb 2016, 01:59 PM
Hello James,

I would suggest you export the ChartView to PDF instead using our RadPdfProcessing API - please take a look at the ChartView Exporting online example at the following link:
It gives the option to export the ChartView to PDF as well as PNG ( check the ComboBox on the left) - you can try both and compare the results. Indeed, using RadPdfProcessing requires additional coding, but it provides higher resolution of the exported ChartView.

Additionally, you could check the Document Processing Integration section inside the Export Support topic for more information and examples on the suggested approach.

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
General Discussions
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question