mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-01 08:54:52 +08:00
fix(example) reconvert the images to add alpha channel
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
+9
-9
@@ -1,22 +1,22 @@
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_ANIMIMG && LV_BUILD_EXAMPLES
|
||||
LV_IMG_DECLARE(anim001)
|
||||
LV_IMG_DECLARE(anim002)
|
||||
LV_IMG_DECLARE(anim003)
|
||||
LV_IMG_DECLARE(animimg001)
|
||||
LV_IMG_DECLARE(animimg002)
|
||||
LV_IMG_DECLARE(animimg003)
|
||||
|
||||
static const lv_img_dsc_t* anim_imgs[3] = {
|
||||
&anim001,
|
||||
&anim002,
|
||||
&anim003,
|
||||
&animimg001,
|
||||
&animimg002,
|
||||
&animimg003,
|
||||
};
|
||||
|
||||
void lv_example_animimg(void)
|
||||
void lv_example_animimg_1(void)
|
||||
{
|
||||
lv_obj_t * animimg0 = lv_animimg_create(lv_scr_act());
|
||||
lv_obj_set_pos(animimg0, 189, 79);
|
||||
lv_obj_center(animimg0);
|
||||
lv_animimg_set_src(animimg0, (lv_img_dsc_t**) anim_imgs, 3);
|
||||
lv_animimg_set_duration(animimg0, 1000);
|
||||
lv_animimg_set_repeat_count(animimg0, 3000);
|
||||
lv_animimg_set_repeat_count(animimg0, LV_ANIM_REPEAT_INFINITE);
|
||||
lv_animimg_start(animimg0);
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ extern "C" {
|
||||
void lv_example_arc_1(void);
|
||||
void lv_example_arc_2(void);
|
||||
|
||||
void lv_example_animimg(void);
|
||||
void lv_example_animimg_1(void);
|
||||
|
||||
void lv_example_bar_1(void);
|
||||
void lv_example_bar_2(void);
|
||||
|
||||
Reference in New Issue
Block a user