How to use external functions to change the image display state

How to use external functions to change the image display state

How do you mean “image display state”? Change the image source on an image widget? If so see Image (lv_img) — LVGL documentation