ArcObjects Library Reference (Carto)  

IMxdServer.GetMapBitmapHandle Method

Generates a picture of the map, based on the given map descriptor, and returns an HBITMAP handle to the resulting image. If you call this function, you absolutely MUST call ReleaseBitmapHandle() with the returned bitmap handle.

[Visual Basic .NET]
Public Function GetMapBitmapHandle ( _
    ByVal MapDescriptor As IMapDescriptor, _
    ByVal Dpi As Integer, _
    ByRef pixelBounds As tagRECT _
) As Integer
[C#]
public int GetMapBitmapHandle (
    IMapDescriptor MapDescriptor,
    int Dpi,
    ref tagRECT pixelBounds
);
[C++]
HRESULT GetMapBitmapHandle(
  IMapDescriptor* MapDescriptor,
  Long Dpi,
  tagRECT* pixelBounds,
  OLE_HANDLE* hBmp
);
[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

hBmp [out, retval]

  hBmp is a parameter of type OLE_HANDLE

Product Availability

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

See Also

IMxdServer Interface