Copy link to clipboard
Copied
Hi,
I'm struggling with the following issue.
Suppose, a user want to do the following:
So my question now is:
Is it possible to find out if that image is mirrored or not? As far as I found out, this image is handled as a "kPlacedArt" by Illustrator, and I was not able to find any function which gives me the mirror-information.
Thanks!
You might want to look into AIPlacedSuite and the function GetPlacedMatrix.
I am not sure since I cannot test right now, but the matrix should contain the scaling which would be negative if it is mirrored.
Copy link to clipboard
Copied
You might want to look into AIPlacedSuite and the function GetPlacedMatrix.
I am not sure since I cannot test right now, but the matrix should contain the scaling which would be negative if it is mirrored.
Copy link to clipboard
Copied
Solved it now like in the following codesnipet (just wanted to check if it is mirrored or not, no distinguishon between horizontal and vertical or both):
sAIPlaced->GetPlacedMatrix(art, &mat);
sAIRealMath->AIRealMatrixGetRotate(&mat, &angleRad1);
if (mat.a > 0 && mat.d < 0) {
return false;
}
else if (mat.a > 0 && mat.d > 0) {
return true;
}
else if (mat.a < 0 && mat.d < 0) {
return true;
}
else if (mat.a < 0 && mat.d > 0) {
return false;
}