xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hardy <vincent.ha...@sun.com>
Subject Re: 1.5 beta5: How to get viewbox coordinates from pixel coordinates
Date Tue, 08 Apr 2003 06:56:50 GMT
Hi Martin,

If you look at the 
samples/tests/spec/scripting/currentScaleTranslate.svg example that 
Thomas put together, you'll find a mouseOver(evt) function that shows 
how to convert from the evt's clientX/clientY to user space coordinates.

Vincent.

Gold Martin wrote:
> hello,
> 
> I'm new to Batik. So my understanding of Batik is still very low.
> 
> In 1.5 beta 5 clientX/Y values MouseEvents are returned in screen pixels.
> In 1.5 beta 4 there were viewBox coordinates.
> 
> How do I get the viewBox coordinates again (from pixel coordinates) ?
> E.g. I draw an Overlay in pixel coordinates, but the coordinates
> should be shown in a status bar as viewBox coordinates.
> 
> A little code example would be very nice.
> 
> thank you very much,
> Martin
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-users-help@xml.apache.org
> 
> 



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