eez-open / studio

Cross-platform low-code GUI and automation
https://www.envox.eu/studio/studio-introduction/
GNU General Public License v3.0
573 stars 97 forks source link

[LVGL] Image pivot point #543

Closed mvladic closed 1 month ago

mvladic commented 1 month ago

Alejandro_Z on Discord: "According to the lvgl documentation, pivot point is on the center of the image by default. But studio defaults it to the top left corner."

Studio should use LVGL default.

zalexzperez commented 1 month ago

https://docs.lvgl.io/master/widgets/image.html#transformations :

Quote: By default, the pivot point of the rotation is the center of the image. It can be changed with lv_image_set_pivot(img, pivot_x, pivot_y). 0;0 is the top left corner.

mvladic commented 1 month ago

Fixed.

By default Image pivot point is in the center now and there is a new option if you want to change that:

image