GIF (lv_gif)

Plays animated GIF images using LVGL's built-in decoder.

Overview

The GIF widget plays animated GIF images using LVGL's built-in AnimatedGIF decoder. The source can be an embedded array or a file.

Learn more in the LVGL Open documentation.

lv_example_gif.c

Properties

Parts

Style parts of the widget with local style (e.g. style_bg_color-knob="0xff0000") or with style sheets (e.g. <style name="style_knob" selector="knob">). See Styles to learn more.

PartDescription
mainStyle the GIF: image_recolor, image_recolor_opa and image_opa. Background, border, etc can be added too.

Properties below are the widget's XML <api>; see API for how properties, parameters and elements work.

PropertyTypeDescription
srcimageThe source for the gif (raw data or a file)
loop_countintNumber of repeats. If not set the information form the gif will be used

Last updated on

On this page