xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomas.dewe...@kodak.com
Subject Re: Problem in making a Horizontal Ruler for SVG Image -- Plz help
Date Wed, 14 Jun 2006 10:03:24 GMT
Hi Shamjith,

Shamjith K V <shamjithkv2002@yahoo.co.uk> wrote on 06/14/2006 01:14:15 AM:

> I am trying to implement an svg viewer.
> I also want to display a horizontal ruler (the scale value can be in 
> centimeter or inch) for that viewer. 
> Some can anybody please tell me how to get the width of the svg image 
> dynamically upon zooming.

   The width of the document where?  In screen pixels?
   Depending on exactly what you want you basically need to project the
document width/height through the rendering transform of the Canvas
(getRenderingTransform).

> Also how to disable the centering of the rendered image before resize.
> Thanks and regards,

   JSVGComponent.setRecenterOnResize(false);


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


Mime
View raw message