xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sudhakar S <yessudha...@hotmail.com>
Subject preserveAspectRatio problem
Date Wed, 10 May 2006 07:02:58 GMT

Hi,

i have used preserveAspectRatio as none in my following example to avoid
scaling. But while resizing the canvas in sqiggle, it is also resizing all
the SVG elements inside the viewport. But  it is not supposed to resize the
elements since preserveAspectRatio as none. So can anyone please provide how
to stop resizing the elements while resizing the canvas?

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="1500" height="1000" version="1.1"
viewBox="0 0 1500 1000" preserveAspectRatio="none"
xmlns="http://www.w3.org/2000/svg">

<rect x="0" y="0" width="1500" height="1000"
fill="yellow" stroke="blue" stroke-width="12" />
<path fill="red" d="M 750,100 L 250,900 L 1250,900 z"/>
<text x="100" y="600" font-size="200" font-family="Verdana" >
Stretch to fit
</text>
</svg>

Thanks,
Sudhakar
--
View this message in context: http://www.nabble.com/preserveAspectRatio-problem-t1589759.html#a4314420
Sent from the Batik - Users forum at Nabble.com.


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