Back to Devexpress

MapControl.ExportToImage(String, ImageExportOptions) Method

wpf-devexpress-dot-xpf-dot-map-dot-mapcontrol-dot-exporttoimage-x28-system-dot-string-devexpress-dot-xtraprinting-dot-imageexportoptions-x29.md

latest1.6 KB
Original Source

MapControl.ExportToImage(String, ImageExportOptions) Method

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Exports the map data to the specified image file using the specified options.

Namespace : DevExpress.Xpf.Map

Assembly : DevExpress.Xpf.Map.v25.2.dll

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public void ExportToImage(
    string filePath,
    ImageExportOptions options
)
vb
Public Sub ExportToImage(
    filePath As String,
    options As ImageExportOptions
)

Parameters

NameTypeDescription
filePathString

A string value, specifying the image file path.

| | options | ImageExportOptions |

A ImageExportOptions object, specifying export settings.

|

See Also

MapControl Class

MapControl Members

DevExpress.Xpf.Map Namespace