[solved] source tx, ty in transform matrix

Discuss SVG code, accessible via the XML Editor.
JakeK
Posts: 5
Joined: Wed Sep 10, 2008 4:56 am

[solved] source tx, ty in transform matrix

Postby JakeK » Wed Sep 10, 2008 6:10 am

I parse inkscape XML to automate rescaling of imagines. The transform from a manually derived (i.e., mouse and keyboard) gives the XML

transform="matrix(1.5,0,0,1.5,-28.57142,-1440.0)">

makes the image 50% larger -- i.e., 1.5, 0 , 0 ,1.5 The last two values are tx, ty translate values. I cannot determine how these values are calculated. BTW the image is a rectangle just to keep it simple.

Can somebody tell me how inkscape calculates tx, ty?



Return to “SVG / XML Code”