> For the complete documentation index, see [llms.txt](https://interopxyz.gitbook.io/ui-plus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://interopxyz.gitbook.io/ui-plus/components/window/capture-image.md).

# Capture Image

Create a bitmap of the current state of a window with an option to save a file

## Description

Create a bitmap of the current state of a window with an option to save a file

{% tabs %}
{% tab title="Preview" %}
![](https://97674526-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOQQ5Dv56AckPkeQ6O9Rf%2Fuploads%2FdWGELOJqNFFajDxe0jF2%2FCapture.png?alt=media\&token=b29cdd68-2709-4759-866a-83da22be0de1)
{% endtab %}

{% tab title="Location" %}
**Name** | Ui Capture Image

**Nickname** | Capture

**Tab** | Ui

**Panel** | Window

**Division** | 2
{% endtab %}

{% tab title="Inputs" %}
**W** | **Window** (*Ui+ Window*) | A Ui Window object

**F** | **Folder Path** (*A*) | The folder path to save the file

**N** | **File Name** (*A*) | The file name for the image

**R** | **Resolution** (*A*) | The PPI (Pixels Per Inch) resolution for the image which must be greater than or equal to 72.

**S** | **Save** (*A*) | If true, save image file
{% endtab %}

{% tab title="Ouputs" %}
**B** | **Bitmap** (*System.Drawing.Bitmap*) | A Bitmap of window contents
{% endtab %}

{% tab title="Mode" %}
*none*
{% endtab %}
{% endtabs %}

## Usage
