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

Export to Image

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

private void RadButton1_Click(object sender, EventArgs e)
{
    radSparkline1.ExportToImage(@"D:\MySpark1.png", new Size(200, 200));
}

Private Sub RadButton1_Click(ByVal sender As Object, ByVal e As EventArgs)
    radSparkline1.ExportToImage("D:\MySpark1.png", New Size(200, 200))
End Sub

In this article