You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Nelson Lourenço <lo...@maisis.pt> on 2002/07/03 13:16:22 UTC
FW: Re: Set Zoom
Who can i do it in IE or Netscape, with Adobe plugin?
TIA
Nelson
-----Original Message-----
From: Thomas DeWeese [mailto:tdeweese@rochester.rr.com]
Sent: Sexta-feira, 21 de Junho de 2002 15:08
To: batik-users@xml.apache.org
Cc: michiel@microweb.nl; Nelson Lourenço
Subject: Re: Re: Set Zoom
> Just set the renderingtransform with a custom affine transform
> something like
> this:
>
> AffineTransform transform = new AffineTransform();
> transform.scale( 1.2, 1.2 );
> JSVGCanvas.setRenderingTransform( transform );
>
>> I have a svg and i want see in browser with a zoom factor of 1.2,
>> what i have to do?
If you don't want to do it programatically you can also
do it using the svg viewbox URL fragment. Something like:
batikLogo.svg#svgView(viewBox(100,50,100,200))
Which will show the region [100,50]->[200,250] in
batikLogo.svg, or:
batikLogo.svg#svgView(transform(scale(1.2)))
Which will scale batikLogo.svg by 1.2. See the SVG spec for
more information. This is a really cool feature of SVG!
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org