Image
Images are added on UI Screens.
Function | Description |
---|---|
setOpacity(value) |
Sets the opacity of the image. |
setVisible(value) |
Sets the visibility of the image. |
setOpacity(value)
Sets the opacity of the image.
Parameters
number value – the new opacity of the Image, range 0-255
let image = this.ui().find("myImage")[0]; image.setOpacity(0.5);
setVisible(value)
Sets the visibility of the image.
Parameters
boolean value – true to set the Image to visible, false if not