Can‘t get size when Image resize,so can't regarding it


can‘t get size when Image resize,so can’t regarding it.

What MCU/Processor/Board and compiler are you using?

Qt create

What LVGL version are you using?


What do you want to achieve?

image set different size and regarding it

What have you tried so far?

try get obj size of image,but same size away

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

printf(“obj size:%d,%d\n”,lv_obj_get_width(obj),lv_obj_get_height(obj));

Screenshot and/or video

If possible, add screenshots and/or videos about the current state.