Image
An image ui element to upload & display images on the glasses screen
Each image is defined by an image slot which you can upload PNG/JPG images
Max size 16KB compressed.
Max pixels: 640x400
PNG images must be encoded with sliding window size of 2^15bytes or less (see PNG zlib encoding).
JPEG compression: baseline only (progressive compression is not supported)
Both grayscale, transparency and color supported as long as they fit into memory limit
All slots except Slot0 are persistent, meaning uploaded images for those slots are kept saved on the glasses between reboots
NOTE: The behaviour of adding 2 (or more) different images with the same slot to the same screen is undefined
Supported transformations: Translate
See also
Constructors
Functions
Override this function to enable custom border drawing when showBorder is true
Get the ImgSrc
Returns the resource of the UI element if exists
The draw method is called to actually draw the ui element visual representation to the CanvasBuffer
Set the image information