feat(image, layer): add bitmap mask feature (#5545)
This commit is contained in:
committed by
GitHub
parent
cfd14cdacd
commit
10978c94c2
@@ -7,15 +7,10 @@ void lv_example_image_1(void)
|
||||
lv_obj_t * img1 = lv_image_create(lv_screen_active());
|
||||
lv_image_set_src(img1, &img_cogwheel_argb);
|
||||
lv_obj_align(img1, LV_ALIGN_CENTER, 0, 0);
|
||||
lv_image_set_scale_x(img1, 512);
|
||||
lv_image_set_scale_y(img1, 128);
|
||||
lv_image_set_rotation(img1, 10);
|
||||
|
||||
lv_obj_t * img2 = lv_image_create(lv_screen_active());
|
||||
lv_image_set_src(img2, LV_SYMBOL_OK "Accept");
|
||||
lv_obj_align_to(img2, img1, LV_ALIGN_OUT_BOTTOM_MID, 0, 20);
|
||||
|
||||
lv_obj_set_style_bg_opa(img1, 100, 0);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user