Hi All,

I am zooming in the SVG document to some extend. after that if zoom out the
document, left and top  of the viewport is moving to right side. it is not
in (0,0) position.

Dimension dim = getSize();
double x = docSize.getWidth() / 2;
double y = docSize.getHeight() / 2;
AffineTransform t = AffineTransform.getTranslateInstance(x, y);
t.concatenate(at);
t.translate( -x, -y);
t.concatenate(rat);
setRenderingTransform(t);

In this code, i tried to set the translate value to (0, 0). but after
setting translate value, it doesn't even zoom the document. So please anyone
explain, how to set viewport's left and top always (0,0), while zoomin or
zoomout.

Thanks,
Sudhakar
-- 
View this message in context: 
http://www.nabble.com/problem-in-zoomin-and-zoomout-tf1998447.html#a5485898
Sent from the Batik - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to