> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IImageWindow

> Control the FlexiCapture image window from scripts with IImageWindow: set image scale, docking, and toolbar visibility, and step through page controls.

Represents the image window.

## Methods

| Definition                                                                                        | Description                                                   |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| EnsureRectVisible( imageRect : [IShellRect](/flexi-capture/appendix/scripts-shell/i-shell-rect) ) | Moves the scroll box to make the specified rectangle visible. |

## Properties

| Name           | Type                                                                     | Access     | Description                                                                                                                                                                                                                                                                                                                                       |
| -------------- | ------------------------------------------------------------------------ | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ClientRect     | [IShellRect](/flexi-capture/appendix/scripts-shell/i-shell-rect)         | Read-only  | The rectangle of the client area (in window coordinates). The coordinates of the upper-left corner of the main window are (0, 0). If the size of the client area is smaller than the size of `TotalRect`, the image window has scrollbars.                                                                                                        |
| Docking        | [TDockingType](/flexi-capture/appendix/scripts-shell/tdockingtype)       | Read/write | The position of `IImageWindow` relative to [IFormWindow](/flexi-capture/appendix/scripts-shell/iformwindow) in the document editor.                                                                                                                                                                                                               |
| DocumentEditor | [IDocumentEditor](/flexi-capture/appendix/scripts-shell/idocumenteditor) | Read-only  | The document editor.                                                                                                                                                                                                                                                                                                                              |
| FirstPage      | [IPageControl](/flexi-capture/appendix/scripts-shell/ipagecontrol)       | Read-only  | The first page.                                                                                                                                                                                                                                                                                                                                   |
| Handle         | int                                                                      | Read-only  | The handle of the window.                                                                                                                                                                                                                                                                                                                         |
| ImageScale     | [IShellRational](/flexi-capture/appendix/scripts-shell/irational)        | Read/write | The image scale. The range of allowed values is from 1/8 to 8.                                                                                                                                                                                                                                                                                    |
| IsDocked       | bool                                                                     | Read/write | Specifies whether the image window is docked.                                                                                                                                                                                                                                                                                                     |
| LastPage       | [IPageControl](/flexi-capture/appendix/scripts-shell/ipagecontrol)       | Read-only  | The last page.                                                                                                                                                                                                                                                                                                                                    |
| Ratio          | [IShellRational](/flexi-capture/appendix/scripts-shell/irational)        | Read/write | The ratio of the size of the `IImageWindow` window (numerator) to the size of the [IDocumentEditor](/flexi-capture/appendix/scripts-shell/idocumenteditor) window (denominator). If the `Docking` property value is `DT_Top` or `DT_Bottom`, the ratio between the y-extents is measured. Otherwise, the ratio between the x-extents is measured. |
| ScrollPos      | [IPoint](/flexi-capture/appendix/scripts-shell/ipoint)                   | Read/write | The position of the scroll box.                                                                                                                                                                                                                                                                                                                   |
| ShowBWImages   | bool                                                                     | Read/write | Specifies whether to show a black-and-white image.                                                                                                                                                                                                                                                                                                |
| ShowToolbar    | [IShellRational](/flexi-capture/appendix/scripts-shell/irational)        | Read/write | Specifies whether to show the toolbar.                                                                                                                                                                                                                                                                                                            |
| TotalRect      | [IShellRect](/flexi-capture/appendix/scripts-shell/i-shell-rect)         | Read-only  | The rectangle of the area occupied by all page images.                                                                                                                                                                                                                                                                                            |
