New to Telerik UI for WinForms? Start a free 30-day trial

Export to Image

Updated on Aug 27, 2026

RadSparkline supports exporting to image out of the box. This can be achieved by the ExportToImage method. This method allows to export the image directly to an file or a stream. You an specify the image size as well.

Example 1: Export to a File

C#
private void RadButton1_Click(object sender, EventArgs e)
{
    radSparkline1.ExportToImage(@"D:\MySpark1.png", new Size(200, 200));
}
Not finding the help you need?
Contact Support