xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas DeWeese <Thomas.DeWe...@Kodak.com>
Subject Re: Centering the SVG
Date Tue, 11 Jan 2005 11:29:31 GMT
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

View raw message