Skip to content

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.

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

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.

Mouse, hover, focus and keyboard — as for any element (see Events and functions).

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);