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


IMapServer4.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 > IMapServer4 Interface > IMapServer4.ExportMapImage Method
ArcGIS Developer Help

IMapServer4.ExportMapImage Method

Generates an image of the map, based on the given map description, and writes the image to a specified file on disk. Supported file types are: 'bmp', 'jpg', 'tif', 'png'/'png8', 'png24', 'emf', 'ps', 'pdf', 'ai', 'gif', and 'svg'/'svgz'.

[Visual Basic .NET]
Public Function ExportMapImage ( _
    ByVal mapDesc As IMapDescription, _
    ByVal imageDesc As IImageDescription _
) As IMapImage
[C#]
public IMapImage ExportMapImage (
    IMapDescription mapDesc,
    IImageDescription imageDesc
);
[C++]
HRESULT ExportMapImage(
  IMapDescription* mapDesc,
  IImageDescription* imageDesc
);
[C++]
Parameters
mapDesc [in]

mapDesc is a parameter of type IMapDescription* imageDesc [in]
imageDesc is a parameter of type IImageDescription*

Product Availability

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

See Also

IMapServer4 Interface