DashboardImageExportOptions Class

Contains options related to exporting a dashboard/dashboard item to an image.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v18.2.Core.dll

Declaration

public class DashboardImageExportOptions :
    IDashboardExportOptions
Public Class DashboardImageExportOptions
    Implements IDashboardExportOptions

Remarks

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.

Examples

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
                }
            );

Inheritance

Object
DashboardImageExportOptions

Implements

DevExpress.DashboardCommon.Native.IDashboardExportOptions
See Also