|
Kodi Docs 20.0
Kodi is an open source media player and entertainment hub.
|
Used to show an image. More...
Classes | |
| class | XBMCAddon::xbmcgui::ControlImage |
Functions | |
| XBMCAddon::xbmcgui::ControlImage::setImage (...) | |
| |
| XBMCAddon::xbmcgui::ControlImage::setColorDiffuse (...) | |
| |
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:
| void XBMCAddon::xbmcgui::ControlImage::setColorDiffuse | ( | ... | ) |
Function: setColorDiffuse(colorDiffuse) | colorDiffuse | hexString - (example, '0xC0FF0000' (red tint)) |
Example:
| void XBMCAddon::xbmcgui::ControlImage::setImage | ( | ... | ) |
Function: setImage(filename[, useCache]) | filename | string - image filename. |
| useCache | [opt] bool - True=use cache (default) / False=don't use cache. |
Example: