Skip to main content

Image / AnimatedImage

Displays an image.

Image supports local static images (e.g., .png, .jpg). AnimatedImage supports .gif.

KeyTypeDescriptionRequiredDefaultMin Version
pathstringLocal image filename, or an online image URL*

This component must set the common property height to define image height; width keeps aspect ratio.

In XXTouch v1.2-11+, AnimatedImage also supports loading online static or animated images and caches them after loading. Provide an HTTP/HTTPS URL in path.

Example

{
cell = "Image";
path = "res/bd_logo1_31bdc765.png";
height = 128.0;
};
{
cell = "AnimatedImage";
path = "https://www.baidu.com/img/540%20258_c622d80176946df7f7b8d1997edf57d4.gif";
height = 128.0;
};

XUI-Image.png