xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danilo Costa <daniloco...@gmail.com>
Subject Re: Centering the SVG - Differences among affineTransforms
Date Thu, 13 Jan 2005 16:19:11 GMT
Hi Thomas,
 Thanks for  your tips, they were usefull , but I still have some doubts:

 1 - Wich's the difference between "svgCanvas.getInitialTransform()"
and "svgCanvas.getRenderingTransform()" ?

 2 - How do the coords in AffineTransform, returned by
"svgCanvas.getViewBoxTransform()",   work?
 Neither the screens corrds nor the canvas corrds worked appropriately
when I tried to use translation operations.

3 - Are there some way to map canvas coords to screen coords and vice-versa?



On Wed, 12 Jan 2005 09:20:20 -0200, Danilo Costa <danilocosta@gmail.com> wrote:
> Thanks Thomas, I 'll try to use JSVGCanvas.getViewBoxTransform.
> 
> On Tue, 11 Jan 2005 06:29:31 -0500, Thomas DeWeese
> <Thomas.DeWeese@kodak.com> wrote:
> > Danilo Costa wrote:
> >
> > > I have an SVG file displayed on a JSVGCanvas and I need to recenter
> > > the visible area passing the new center coords  using the viewBox
> > > coords not the screen corrds.
> > >
> > > Anybody knows how is the simplest way to do this?
> >
> >     I would suggest looking at the code in:
> >         org.apache.batik.apps.svgbrowser.FindDialog ~ line 348.
> >
> >     You might also look at using JSVGCanvas.getViewBoxTransform
> > which will give you the transform from viewBox to Screen coords.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: batik-users-help@xml.apache.org
> >
> >
> 
> 
> --
> "...YOU CANNOT KNOW THE MEANING OF YOUR LIFE UNTIL YOU ARE CONNECTED
> WITH THE POWER THAT CREATED YOU..."
> Shri Mataji Nirmala Devi
> 


-- 
"...YOU CANNOT KNOW THE MEANING OF YOUR LIFE UNTIL YOU ARE CONNECTED
WITH THE POWER THAT CREATED YOU..."
Shri Mataji Nirmala Devi

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


Mime
View raw message