Possible Duplicate:
How to get the actual x/y position of an element in SVG with transformations and matrices
I need to get the x/y positions of an element that is written like this in SVG:
<image
y="-421.28461"
x="335.27295"
id="image2991"
xlink:href="file:///C:/Users/tom/Documents/t.jpg"
height="369"
width="360"
transform="matrix(0.22297057,0.97482518,-0.97482518,0.22297057,0,0)" />
Here x
& y
attributes are given but this not gives the image actual position. As much as i know in the
transform matrix [a,b,c,d,e,f]
e
& f
gives the translated axis in the x and y respectively. But the
problem is that here both ( e & f )
are 0. Now i can i get the actual x
any y
for this image?
Assuming,
Given the transformation matrix
Having the values
Knowing
You`ll eventually get
Or,