lvgl.image
Display an image. The image will be centered in the frame (x, y, w, h). Images can be scaled to either fit entirely within the frame or completely fill the frame.
Syntax
lvgl.image([parent], {settings})
parent:image({settings})
Parameters
See the API page for parameter description and common settings.
Image specific settings:
Name | Type | Description | Default if not set |
---|---|---|---|
file | String | File name of the image to display. Must include full path to image file on the SD card. | Empty string |
fill | Boolean | If true the image is scaled to completely fill the frame. The image may be cropped. If false it is scaled to fit entirely in the frame. The result may have empty borders. | false |
Return values
LVGL object
API Status
Avail | Status | Comment | |
---|---|---|---|
BW radios | |||
Color radios | active |
Change log
EdgeTX version | Change |
---|---|
2.11.0 | Introduced |