ArcGIS Pro 2.7 API Reference Guide
CaptureThumbnail Method (MapView)

ArcGIS.Desktop.Mapping Namespace > MapView Class : CaptureThumbnail Method
The width of the thumbnail.
The height of the thumbnail.
Capture a bitmap of the MapView content.
Syntax
public BitmapSource CaptureThumbnail( 
   int width,
   int height
)
Public Function CaptureThumbnail( _
   ByVal width As Integer, _
   ByVal height As Integer _
) As BitmapSource

Parameters

width
The width of the thumbnail.
height
The height of the thumbnail.

Return Value

A bitmap of the captured content.
Remarks
If the MapView is not ready (IsReady) null will be returned.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

MapView Class
MapView Members