21 Mar
2011
21 Mar
'11
9:53 a.m.
OK, and how do I get this matrix? It does not seem to be an element of the rectangle itself ...
I am guessing that the transformation is hidden in some parent element of the rectangle. So using xpath is probably not the best way to find all rectangles. How can I iterate over all rectangles and also find the proper transformation while doing so?
Thanks! Nathan
On 03/20/2011 04:41 PM, Alvin Penner wrote:
the x and y coordinates are probably the coordinates of the upper left corner, so they will change when you rotate the object. The rotation angle will often be embedded in an affine transform element that will look like this : matrix(0.90791043,-0.41916422,0.41916422,0.90791043,0,0)
Alvin