New to Telerik UI for WinForms? Start a free 30-day trial
Export to Image
Updated over 6 months ago
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));
}