1 #include "../../lv_examples.h"
2 #if LV_USE_IMG && LV_BUILD_EXAMPLES
3
lv_example_img_1(void)4 void lv_example_img_1(void)
5 {
6 LV_IMG_DECLARE(img_cogwheel_argb);
7 lv_obj_t * img1 = lv_img_create(lv_scr_act());
8 lv_img_set_src(img1, &img_cogwheel_argb);
9 lv_obj_align(img1, LV_ALIGN_CENTER, 0, -20);
10 lv_obj_set_size(img1, 200, 200);
11
12 lv_obj_t * img2 = lv_img_create(lv_scr_act());
13 lv_img_set_src(img2, LV_SYMBOL_OK "Accept");
14 lv_obj_align_to(img2, img1, LV_ALIGN_OUT_BOTTOM_MID, 0, 20);
15 }
16
17 #endif
18