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


This article describes the RadDiagram export to image feature.

The RadDiagram framework provides a method for exporting its current state to an image file. You can control the type of the created image.

ExportToImage method

The RadDiagram.ExportToImage() method allows you to export the diagram to an image. It returns an Image which can be saved in the desired type.

Image img1 = this.radDiagram1.ExportToImage();
string imagePath1 = @"..\..\img1.png";

Dim img1 As Image = Me.RadDiagram1.ExportToImage()
Dim imagePath1 As String = "..\..\img1.png"

Alternatively, you can use the RadDiagramRibbonBar and its Export button:

WinForms RadDiagram RadDiagramRibbonBar Export

The exported image is illustrated below

WinForms RadDiagram Exported Image

In this article