Shear and rotation
Hi alll, I’m facing an issue while retrieving the value of rotation angle and shear angle which is applied to the image.
///////////////////retrieving rotation angle//////////////////////////
var matrix = graphicFrame.matrix; var angle = Math.atan2(matrix.mValueB, matrix.mValueA); var rotation_angle = angle / Math.PI * 180;
/////////////////retrieving shear angle////////////////////////
var shearAngle = 180 / Math.PI * Math.atan2(matrix.mValueC, matrix.mValueD);
The above script will work properly only if the image has applied either rotation or shear angle.if the image has applied both rotation and shear angle in this time the above script will give wrong value. can anyone please help me to get the solution. I want to retrieve the value of shear and rotation angle using script.
