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


IMxdServer.GetMapPicture 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.GetMapPicture Method
ArcGIS Developer Help

IMxdServer.GetMapPicture Method

Generates a picture of the map, based on the given map descriptor, and returns the image as an IPictureDisp. If pMapDescriptor is null, it draws a picture of the default map at the default extent.

[Visual Basic .NET]
Public Function GetMapPicture ( _
    ByVal MapDescriptor As IMapDescriptor, _
    ByVal Dpi As Integer, _
    ByRef pixelBounds As tagRECT _
) As stdole.IPictureDisp
[C#]
public stdole.IPictureDisp GetMapPicture (
    IMapDescriptor MapDescriptor,
    int Dpi,
    ref tagRECT pixelBounds
);
[C++]
HRESULT GetMapPicture(
  IMapDescriptor* MapDescriptor,
  Long Dpi,
  tagRECT* pixelBounds
);
[C++]
Parameters
MapDescriptor [in]

MapDescriptor is a parameter of type IMapDescriptor* Dpi [in]
Dpi is a parameter of type int pixelBounds [in]
pixelBounds is a parameter of type tagRECT*

Product Availability

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

See Also

IMxdServer Interface