DiagramControl.ExportDiagram(Stream, DiagramExportFormat, Nullable<Double>, Nullable<Double>) Method
Exports the diagram to the specified stream.
Namespace: DevExpress.Xpf.Diagram
Assembly: DevExpress.Xpf.Diagram.v24.2.dll
NuGet Package: DevExpress.Wpf.Diagram
Declaration
public void ExportDiagram(
Stream stream,
DiagramExportFormat exportFormat,
double? dpi = null,
double? scale = null
)
Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A Stream object to which the created file should be sent. |
exportFormat | DiagramExportFormat | A DevExpress.Diagram.Core.DiagramExportFormat enumeration value. |
Optional Parameters
Name | Type | Default | Description |
---|---|---|---|
dpi | Nullable<Double> | null | A double value which represents the resolution (in dpi). The minimum supported value is 1. |
scale | Nullable<Double> | null | A double value that specifies the scale factor. Values from 0.1 to 30 are supported. |
Remarks
The exportFormat parameter only affects which format is selected by default. End-users can select any other available file format in the invoked dialog window.
If the dpi and scale parameters are not specified, the ExportDPI and ExportScale property values are used.
The following file formats are supported: JPG, PNG, GIF, BMP, SVG, PDF.