Image is displayed incorrectly

hello together

i have converted a png image to a c array with the converter and now i want to display it on an esp-s3 7 inch screen.

at the beginning i could not complicate the code, had the same problem as here:

have then adapted it for me:

const lv_img_dsc_t sun = {
2304 * LV_COLOR_SIZE / 8,

but now it looks like this on the display? the image is a small sun.

anyone have an idea what it can be? esp graphic display:

lv_obj_t *img = lv_img_create(lv_scr_act());
  lv_img_set_src(img, &sun);
  lv_obj_align(img, LV_ALIGN_CENTER, 0, 0);

thank you very much!

can be closed, as always the trouble sits in front of the computer:D

have included it incorrectly.

we call that a PEBKAC problem. Problem Exists Between Keyboard And Chair.

Another one that is used in the IT world is “id ten t” which is actually ID10T (IDIOT)
That wasn’t directed at you at all LOL.
We used it in the IT department for internal verbal communication to explain what the problem was if the problem was major user error.

1 Like