Used to show an image.
Class: ControlImage(x, y, width, height, filename[, aspectRatio, colorDiffuse])
The image control is used for displaying images in Kodi. You can choose the position, size, transparency and contents of the image to be displayed.
x | integer - x coordinate of control. |
y | integer - y coordinate of control. |
width | integer - width of control. |
height | integer - height of control. |
filename | string - image filename. |
aspectRatio | [opt] integer - (values 0 = stretch (default), 1 = scale up (crops), 2 = scale down (black bar) |
colorDiffuse | hexString - (example, '0xC0FF0000' (red tint)) |
Example:
setImage | ( | ... | ) |
Function: setImage(filename[, useCache])
filename | string - image filename. |
useCache | [opt] bool - True=use cache (default) / False=don't use cache. |
Example:
setColorDiffuse | ( | ... | ) |
Function: setColorDiffuse(colorDiffuse)
colorDiffuse | hexString - (example, '0xC0FF0000' (red tint)) |
Example: