Description
In my project, I need to enlarge the jpg image according to the length and width of the image. Not to scale up.
What MCU/Processor/Board and compiler are you using?
Linux gcc
What LVGL version are you using?
V7.4
What do you want to achieve?
Realize the picture display is enlarged according to the length and width.
What have you tried so far?
I tried to imitate the interface of lv_img_set_zoom
and wrote the interfaces of lv_img_set_zoom_x
and lv_img_set_zoom_y
respectively. However, when using it, it is still enlarged according to the same scale, and there is a ghost. (A picture that does not completely overlap is displayed on the interface twice). Can you provide some guidance? Looking forward to your reply, thank you very much.
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.
The code block(s) should be formatted like:
/*You code here*/
Screenshot and/or video
If possible, add screenshots and/or videos about the current state.