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


IMxdServer.GetMapBitmapHandle Method (ArcObjects .NET 10.6 SDK)
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
);
[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