dashboard-devexpress-dot-dashboardcommon-2c3e1f43.md
Contains options related to exporting a dashboard/dashboard item to an image.
Namespace : DevExpress.DashboardCommon
Assembly : DevExpress.Dashboard.v25.2.Core.dll
NuGet Package : DevExpress.Dashboard.Core
public class DashboardImageExportOptions :
IDashboardImageExportOptions,
IDashboardExportOptions
Public Class DashboardImageExportOptions
Implements IDashboardImageExportOptions,
IDashboardExportOptions
The following members return DashboardImageExportOptions objects:
The following properties allow you to access default image-specific export options for different controls.
Moreover, you can specify image options when exporting a dashboard/dashboard item using the following methods.
Note
To export a dashboard/dashboard item on the web using an API, use the ExportToImage and ExportDashboardItemToImage methods exposed by the ASPxClientDashboard class.
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
}
);
Imports DevExpress.DashboardCommon
' ...
dashboardDesigner1.ExportDashboardItemToImage("chartDashboardItem1", "c:\temp\ExportedImage.jpg", New DashboardImageExportOptions() With { _
Key .Format = DashboardExportImageFormat.Jpeg, _
Key .ScaleFactor = 1.5F _
})
Object DashboardImageExportOptions
See Also