opensubscriber
   Find in this group all groups
 
Unknown more information…

b : batik-users@xmlgraphics.apache.org 18 March 2005 • 11:38PM -0500

Using viewBox for unit conversion
by James Shaw

REPLY TO AUTHOR
 
REPLY TO GROUP




I have been looking for a way to reflect an object about its y axis; I
understand that I need a transform matrix to do this, and that you
cannot translate by cms, ins or other units.  The ppl on #svg
recommended using a viewbox.

I've checked on #svg, and I understand that a document like this:

<svg width="20cm" height="10cm" viewBox="0 0 200 100">
    <line x1="0" y1="0" x2="20" y2="10" style="stroke: blue;
stroke-width: 1"/>
</svg>

should produce a drawing 20x10cms.  However, when I preview this in
squiggle or a JSVGScrollPane, the drawing is about 80x40 pixels.  I
would have expected batik to use the screen dpi (or similar measurement)
to correct render the document at 100% zoom.

Am I using viewBox incorrectly, or am I using Batik wrongly?

Thanks in advance
James Shaw

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlg...
For additional commands, e-mail: batik-users-help@xmlg...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.