Get image object x y transform value

Description

I am learning to create a UI using square line studio, I have created an image object and I want to move it using button clicks like a button is clicked it needs to move several pixels, so to do that was trying to get the current x,y coordinates value for image but the value I am getting is different from showing in squareline studio software

What MCU/Processor/Board and compiler are you using?

VSCode lvgl simulator

What LVGL version are you using?

8.3.0

What do you want to achieve?

To get the x,y co-ordinates same as shown in square line studio

What have you tried so far?

I have tried lv_obj_get_x(), lv_obj_get_y(),lv_obj_get_coords(),lv_img_get_offset_y(),lv_img_get_offset_x()

Code to reproduce

The code block(s) should be formatted like:

lv_obj_get_coords(ui_obj1,&rocket_cords);
    printf("object cordinates is %d %d %d %d\n",object_cords.x1,object_cords.y1,object_cords.x2,object_cords.y2);

o/p
object cordinates is 160 585 243 783

Screenshot and/or video

image

##Objective
I want to get x = -310 and y = 144 value

got the solution myself, we can get the x, and y values using lv_obj_get_x_aligned()
lv_obj_get_y_aligned() functions