rpti::item::image
Interact with items of type image.
- Supported Property Names
- To set image properties, use the following properties:
- Example
::rpti::item set -id $imageobid -label "My Image" -position "Above Image"
rpti::item::image create
Creates an item of type "image".
- Syntax
rpti::item::image create
- Parameters
-
- For
- Value: A full list of standard property names see Supported property name above.
- Returns
- The ID of the item or .tcl-error in case an error occurred during creation.
- Example
rpti::item::image create -name "My Image Item"
rpti::item::image delete
Deletes the item with the specified ID.
- Syntax
rpti::item::image delete
- Parameters
-
- -id
- Mandatory value: Item ID. The item ID which is returned by the corresponding "create" API.
- Returns
- 1 for OK, .tcl-error in case of error.
- Example
rpti::item::image delete -id $id
rpti::item::image get
Queries the value of one property.
- Syntax
rpti::item::image get
- Parameters
-
- -id
- Mandatory value: Item ID. The item ID which is returned by the corresponding "create" API.
- For
- Value: A full list of standard property names see Supported property name above.
- Returns
- The value of the specified property or .tcl-error in case of error.
- Example
rpti::item::image get -id $id -property parent
rpti::item::image getpropertyid
Queries ID of property.
- Syntax
rpti::item::image getpropertyid
- Parameters
-
- -id
- Value: Item ID.
- -key
- Value: Property key.
rpti::item::image getpropertykeylist
Queries list of properties.
- Syntax
rpti::item::image getpropertykeylist
- Parameters
-
- -id
- Value: Item ID. The item ID which is returned by the corresponding "create" API.
- Returns
- List of property keys for a particular item ID.
rpti::item::image set
Sets one or multiple parameters to specified values. The type of the item is assigned
upon creation and cannot be changed after.
- Syntax
rpti::item::image set
- Parameters
-
- -id
- Mandatory value: Item ID. The item ID which is returned by the corresponding "create" API.
- -file
- Value: A full list of standard property names. See Supported Property Names above.
- -config
- Value: HwCaptureImage for capturing images from a given page and window.
- -hwpage
- Applicable when config is set to HwCaptureImage
- -hwwindow
- Applicable when config is set to HwCaptureImage
Additionally, follow the list of Supported Property Names above.
- Returns
- 1 for OK, .tcl-error in case of error.
- Example
-
rpti::item::image set -id $id -name "My Image Item" -file "C:/temp/image1.png" rpti::item::image set -id $id -config HwCaptureImage -hwpage 1 -hwwindow 4