Hi Sudhakar,

Sudhakar S <[EMAIL PROTECTED]> wrote on 07/25/2006 10:03:58 AM:

> 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.

   If you simply skip the Translate stuff you will always scale
relative to the upper left corner of the canvas.
 
AffineTransform t = new AffineTransform(at)
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.

   If would have been helpful if you had provided your modified
code so we could point out your error rather than try and guess...


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

Reply via email to