xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Abernathy <jeff.aberna...@asolutions.com>
Subject resize a rotated shape
Date Thu, 29 Nov 2007 15:43:39 GMT

In an SVG based drawing application, I am trying to modify the ability to resize shapes on
the canvas to work with shapes that have been rotated. This works fine for circles and ellipses,
but when resizing something like a rectangle, the shape moves around on the canvas (since
the center of the shape changes as you change the shape's size). How should I alter the x
and y values of the rectangle to make it appear that the shape is anchored on the canvas while

If I keep the shape's rotation center the same as the previous size's center, the rectangle
appears to stay in place -- however this screws up the rotation transformation for future
attempts to rotate/move the shape. 

Jeff Abernathy

To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org

View raw message