DiagramControl.ExportDiagram(String, Rect, Double, Double) Method
Exports the diagram in the specified format to a file.
public void ExportDiagram( string path, Rect exportBounds, double exportDPI, double exportScale )
Public Sub ExportDiagram( path As String, exportBounds As Rect, exportDPI As Double, exportScale As Double )
A string value that is the path to the file to which to save the diagram.
A System.Windows.Rect object specifying the rectangle which encompasses the total background area when exporting the diagram.
A double value which represents the resolution (in dpi). The minimum supported value is 1.
A double value that specifies the scale factor. Values from 0.1 to 30 are supported.
The following file formats are supported: JPG, PNG, GIF, BMP, SVG, PDF. The desired file format is automatically detected based on the file extension.