Hi,
i’m looking for a solution to determine if a png image source is valid and shows an image. My task is to show a company label in a userlist, if the user has a company label, otherwise show a label with its name:
…
lv_fs_stdio_init();
lv_png_init();
lv_obj_t *logo = lv_img_create(obj);
char src[50];
sprintf(src,“A:/data/%u.png”,user_id_create);
lv_img_set_src(logo,(void *) src);
…
how do i detect if the source path has no valid file and shows an empty image using the image object?
Best,
Michael