Skip to main content
A newer version of this page is available.

ASPxGaugeControl.ExportToImage(String, ImageFormat) Method

Exports the ASPxGaugeControl to the specified file in Image format.

Namespace: DevExpress.Web.ASPxGauges

Assembly: DevExpress.Web.ASPxGauges.v19.2.dll

Declaration

public void ExportToImage(
    string filePath,
    ImageFormat format
)

Parameters

Name Type Description
filePath String

A String that specifies the path (including the full path) for the created Image file.

format ImageFormat

A ImageFormat object which specifies the image format.

Remarks

The ExportToImage method overwrites any files present at the specified path that have the same file name without any warnings.

ASPxGaugeControl1.ExportToImage(@"c:\temp\aspxgaugeexport.jpeg",
          System.Drawing.Imaging.ImageFormat.Jpeg);
See Also