This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMxdServer Interface > IMxdServer.GetMapBitmapHandle Method (ArcObjects .NET 10.5 SDK) |
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,
long* 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 long