Image
The image shows a PNG, JPG, BMP or GIF file from the project’s images/ folder: a diagram backdrop, an equipment photo, a logo. “Stretch” decides how the picture fits the frame: keeping proportions, stretched or at actual size.
If the picture has to change with a tag value (valve position, mode), use a graphic field with a graphic list.
Properties
Section titled “Properties”Besides the properties of every element — name, position, size, tooltip, rotation, transparency and the operate right:
| Property | Values | Default | Description |
|---|---|---|---|
Path |
image file | File. Image from the project images/ folder (PNG, JPG, BMP, GIF) | |
Stretch |
Uniform, Fill, None |
Uniform |
Fit |
From scripts
Section titled “From scripts”Item.Type = Image. Any property is read and changed by name: Item.Width = 200. The common element members (Visible, Enabled, Value, Raise, Apply…) are described in Elements from scripts.
Events
Section titled “Events”Mouse, hover, focus and keyboard — as for any element (see Events and functions).
Examples
Section titled “Examples”A photo of the area selected by the operator — a button script.
Screen.Items("Photo").Path = "images/area-" + Tags("Area.Selected").Value + ".jpg";A diagram over the whole screen without distortion.
var map = Screen.Items("Diagram");map.Stretch = "Uniform";map.Resize(Screen.Width, Screen.Height);