Skip to main content

addObjectImage

Displays an image on the pad. The image can optionally be made clickable in which case click events are generated when the image is tapped with the pen.

ParameterDescription
id

Supports the same reserved Ids as button objects. See AddObject(ObjectButton) above.

x, y

Position of the top left corner of the object on the pad display.
Value can either be absolute position in pixels, or one of the strings:

  • x: "left", "right", "centre"
  • y: "top", "middle", "bottom"
imageImage to display.
optionsOptional object with the image dimensions.
Return values
The added Object if success or null if there is some error.