How to disaply the transparent image on lcd

How to display the actual color of the transparent image on lcd. Following the code snippet.

static lv_obj_t * img_battery_left;
lv_obj_t * scr = lv_disp_get_scr_act(NULL);
static lv_style_t left_style;
lv_style_copy(&left_style, &lv_style_plain);

img_battery_left = lv_img_create(scr, NULL);
lv_img_set_src(img_battery_left, &battery_100);

lv_img_set_style(img_battery_left, LV_IMG_STYLE_MAIN, &left_style);
lv_obj_align(img_battery_left, NULL,LV_ALIGN_IN_BOTTOM_LEFT, 0, 0);

Please find the attached file for image creation method .
battery_100.c (8.8 KB)


See the docs here.