I have a rectangular image which gets transformed applying image.setLayoutMatrix3D(matrix3D). I need to calculate the actual dimensions and position (in pixels) of the image after the transformation.
In this scenario there are no rotations to the image applied. The matrix3D has the following structure:
1 0 0 0
0 1 0 0
0 0 1 0
value1 value2 value3 1
Provided that the original position and size of image are originalWidth, originalHeight, originalX and originalY how can I calculate the new dimension and position?
Thanks!