I want to transform an image/bitmap as it is leaning backwards. If it is not clear what am trying to say please refer pic1 (original) pic2 (transformed)
pic1
-----------
-----------
-----------
-----------
-----------
pic2
-----
-------
---------
-----------
-------------
Simply as
pic2.rotationX = -30;Keep in mind that
pic2will be rotated relative to registration point. Ifpic2registration point is at 0,0 and you want to rotate it through center, you could add it to a container sprite, setpic2coordinates to be centered at 0,0 relative to the container and then perform transformation on the container, like so: