Returns a bitmap of the specified size and width, containing the current display scaled to maintain the current aspect ratio.

Namespace:  ESRI.ArcGISExplorer.Mapping

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public Bitmap GetBitmap(
	int width,
	int height
)
Visual Basic (Declaration)
Public Function GetBitmap ( _
	width As Integer, _
	height As Integer _
) As Bitmap

Parameters

width
Type: System..::.Int32

The width in pixels of the bitmap.
height
Type: System..::.Int32

The height in pixels of the bitmap.

Return Value

A Bitmap of the current display.

Remarks

This method can be used to export the contents of the display (similar to taking a screenshot), for example in order to add the bitmap to a document.

The bitmap includes items visible in the display such as attribution, scalebar, and navigator.

See Also