This document is archived and information here might be outdated.  Recommended version.


IMxdServer.ExportMapImage Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMxdServer Interface > IMxdServer.ExportMapImage Method
ArcGIS Developer Help

IMxdServer.ExportMapImage Method

Generates an image of the map, based on the given map descriptor, and writes the image to the specified file on disk. Supported file types are: 'bmp', 'jpg', 'tif', 'png'/'png8', 'png24', 'emf' and 'pcx'.

[Visual Basic .NET]
Public Function ExportMapImage ( _
    ByVal MapDescriptor As IMapDescriptor, _
    ByVal Dpi As Integer, _
    ByVal imageWidth As Integer, _
    ByVal imageHeight As Integer, _
    ByVal fileType As String, _
    ByVal outputFileName As String _
) As IEnvelope
[C#]
public IEnvelope ExportMapImage (
    IMapDescriptor MapDescriptor,
    int Dpi,
    int imageWidth,
    int imageHeight,
    string fileType,
    string outputFileName
);
[C++]
HRESULT ExportMapImage(
  IMapDescriptor* MapDescriptor,
  Long Dpi,
  Long imageWidth,
  Long imageHeight,
  BSTR fileType,
  BSTR outputFileName
);
[C++]
Parameters
MapDescriptor [in]

MapDescriptor is a parameter of type IMapDescriptor* Dpi [in]
Dpi is a parameter of type int imageWidth [in]
imageWidth is a parameter of type int imageHeight [in]
imageHeight is a parameter of type int fileType [in]
fileType is a parameter of type BSTR outputFileName [in]
outputFileName is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IMxdServer Interface