Set image as the bg of a bar

Hi, sorry if my question is really dumb, but I’m just getting started…
I want my bar to have a specific background. I’ve tried to use lv_obj_set_style_bg_image_src(), but the address of the image I want to use doesn’t work on the second parameter. I’m in the simulator on Visual Studio with the 9 version of LVGL by the way. Is there something else I have to do to make it work?

Try start here Bar (lv_bar) — LVGL documentation
for bg change to

lv_obj_add_style(bar, &style_indic, LV_PART_MAIN);

and may rename style…