Animation Image (lv_animimg)

Like the Image widget, but plays an array of source images as frames of an animation.

Edit on GitHub

Overview

Animation Image behaves like the Image widget, but plays an array of source images as frames of an animation. You can set the duration and the repeat count.

Image sources

To set the image animation sources, use lv_animimg_set_src(animimg, dsc[], num).

To set the sources for flip (reverse) playback, use lv_animimg_set_src_reverse(animimg, dsc[], num).

Using the inner animation

The animation used internally by the widget can be retrieved with lv_animimg_get_anim(animimg). This gives access to all Animation functions — for example lv_anim_set_values(anim, start, end) or attaching a completion callback.

Styling

Last updated on

On this page