Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:scripting_reference:scripting_objects:image

The Image object represents an image file or icon to be displayed in a script dialog. You can load an image or icon using the DOpus.LoadImage or Script.LoadImage methods. It can be displayed using a static control, a button control, assigned as the dialog's icon, or used as the icon for a listview item.

You can also assign a name to an image using the DOpus.AddMarkupImage method, which allows you to use it in markup text.

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.