Hi,
Yeah, I'm learning more about transforms than I really want to. Oh well, it helps.
Unfortunately, applying a rotate to a transform seems to really screw up scaling AND translating.
Looking at the matrix, it makes sense as to why. If I draw an element to the JSVGCanvas,
and want to be able to move, scale, and rotate it without one operation hosing up another,
how do I achieve this? I had scaling and translating down pat, but rotation breaks everything.
Michael Bishop
________________________________
From: Tonny Kohar [mailto:tonny@kiyut.com]
Sent: Thu 12/8/2005 8:08 PM
To: batikusers@xmlgraphics.apache.org
Subject: RE: Scaling around a center point...
Hi,
On Thu, 20051208 at 10:53 0500, Bishop, Michael W. CONTR J9C880
wrote:
> transform="translate(x, y) scale(x, y) rotate(t)"
>
> Is there a way to get the value of t?
the value of T will be cos(t) from transform matrix element 0,0
 rotate(t)
[ cos(theta) sin(theta) 0 ]
[ sin(theta) cos(theta) 0 ]
[ 0 0 1 ]
 rotate(t,x,y)
[ cos(theta) sin(theta) xx*cos+y*sin ]
[ sin(theta) cos(theta) yx*siny*cos ]
[ 0 0 1 ]
from AffineTransform Java API doc
Regards
Tonny Kohar

Sketsa
SVG Graphics Editor
http://www.kiyut.com

To unsubscribe, email: batikusersunsubscribe@xmlgraphics.apache.org
For additional commands, email: batikusershelp@xmlgraphics.apache.org
