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

MapControl.ExportToImage(Stream, ImageFormat) Method

Exports the control’s data to the specified stream in Image format using the specified Image-specific options.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v18.2.dll

Declaration

public void ExportToImage(
    Stream stream,
    ImageFormat format
)

Parameters

Name Type Description
stream Stream

A Stream object, to which the map is exported.

format ImageFormat

A ImageFormat value representing the format in which the map is exported.

Remarks

This method exports the current map as an image to an object of the Stream class or its descendants, calling the PrintingSystemBase.ExportToImage method. The image format should be specified by the format parameter, for instance, ImageFormat.BMP. After creating an image file, the map can be displayed in an appropriate application. For more information, refer to the PrintingSystemBase.ExportToImage topic.

Note

The MapControl’s data can only be exported if the XtraPrinting Library is available.

See Also