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


IMxdServer.GetMapPicture Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

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,
  Picture** pict
);
[C++]

Parameters MapDescriptor [in]
MapDescriptor is a parameter of type IMapDescriptor Dpi [in] Dpi is a parameter of type Long pixelBounds [in]
pixelBounds is a parameter of type tagRECT pict [out, retval]
pict is a parameter of type Picture

Product Availability

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

See Also

IMxdServer Interface