DashboardDesigner.ExportDashboardItemToImage(String, String, DashboardImageExportOptions) Method
In This Article
Exports the dashboard item to the image file using the specified image options.
Namespace: DevExpress.DashboardWin
Assembly: DevExpress.Dashboard.v24.2.Win.dll
NuGet Package: DevExpress.Win.Dashboard
#Declaration
public void ExportDashboardItemToImage(
string dashboardItemName,
string filePath,
DashboardImageExportOptions options
)
#Parameters
Name | Type | Description |
---|---|---|
dashboard |
String | A String that is the component name of the dashboard item to be exported. |
file |
String | A String that specifies the path to the image file. |
options | Dashboard |
A Dashboard |
#Example
The following code snippet shows how to export the Chart dashboard item displayed within the DashboardDesigner using the DashboardDesigner.ExportDashboardItemToImage method with specific image-export options specified.
using DevExpress.DashboardCommon;
// ...
dashboardDesigner1.ExportDashboardItemToImage("chartDashboardItem1", @"c:\temp\ExportedImage.jpg", new DashboardImageExportOptions() {
Format = DashboardExportImageFormat.Jpeg,
ScaleFactor = 1.5f
}
);
See Also