ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Layouts Namespace / LayoutView Class / CaptureThumbnail Method / CaptureThumbnail(Int32,Int32) Method
The width of the thumbnail in pixels.
The height of the thumbnail in pixels.

In This Topic
    CaptureThumbnail(Int32,Int32) Method
    In This Topic
    Capture a bitmap of the LayoutView content.
    Syntax
    public BitmapSource CaptureThumbnail( 
       int width,
       int height
    )
    Public Overloads Function CaptureThumbnail( _
       ByVal width As Integer, _
       ByVal height As Integer _
    ) As BitmapSource

    Parameters

    width
    The width of the thumbnail in pixels.
    height
    The height of the thumbnail in pixels.

    Return Value

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

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also