# Image

The **Image** object represents an image file or icon to be displayed in a [script dialog](https://chaoses-ib.gitbook.io/directory-opus/manual/scripting/script_dialogs). You can load an image or icon using the [**DOpus**](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/dopus)**.LoadImage** or \*\*[Script](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/scripting_reference/scripting_objects/script).LoadImage \*\*methods. It can be displayed using a static control, or assigned as the dialog's icon.

| Property Name | Return Type | Description                                                               |
| ------------- | ----------- | ------------------------------------------------------------------------- |
| bitcount      | *int*       | Returns the bit count of the loaded image.                                |
| height        | *int*       | Returns the height of the loaded image.                                   |
| type          | *string*    | Returns the type of file the image was loaded or created from (if known). |
| width         | *int*       | Returns the width of the loaded image.                                    |

| Method Name | **Arguments** | Return Type | Description                                                                         |
| ----------- | ------------- | ----------- | ----------------------------------------------------------------------------------- |
| SetClip     | *none*        | *bool*      | Copies the image's bitmap data into the Windows clipboard. Returns boolean success. |
