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

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,
	Color background
)
Visual Basic (Declaration)
Public Function GetBitmap ( _
	width As Integer, _
	height As Integer, _
	background As Color _
) 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.
background
Type: System.Drawing..::.Color

The Color of the background of the bitmap, used to fill remaining areas of the requested size bitmap if the aspect ratio of the current display does not match the aspect ratio of the specified width and height.

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