I currently have an lv_image
with a fixed width and some SVG image I load using lv_image_set_src(logo, "F:/logo.svg");
I then set lv_image_set_inner_align(logo, LV_IMAGE_ALIGN_CONTAIN);
This works and almost provides me what I want.
However, the SVG does not always match exactly the aspect ratio of the lv_image
.
In the case it doesn’t match exactly, I would like for the image to align to the right side of the image (and still apply the logic of LV_IMAGE_ALIGN_CONTAIN
).
How can this be solved?