I’m running littlevglV7.0 in VS2017.
I use lv_img_set_zoom() to animate the enlarged image.
Use online tools(https://lvgl.io/tools/imageconverter) to convert .png files to .c and .bin files. Both files can display the image normally, but only the .c file can animate the enlarged image, and the .bin file only shows a black background when scaled.
code:
lv_anim_t a;
lv_anim_init(&a);
lv_anim_set_var(&a, animationImg);
lv_anim_set_time(&a, 300);
lv_anim_set_repeat_count(&a, 1);
lv_anim_set_exec_cb(&a, (lv_anim_exec_xcb_t)lv_img_set_zoom);
lv_anim_set_values(&a, 256, 350);
lv_anim_start(&a);
Looking forward to your answers..
Thank youvery much