I'm hoping this is the right forum for this question:
We'd like to create some graphical icons in Batik for use as buttons in a
web interface. Imagine simple little icons with images of cars, people,
buildings, etc, composed of lines and other primitives. We'd like to be
able to dynamically scale these images. Is there a "global" scaling feature
in SVG? All I've seen in my limited experience is individual scaling for
every primitive in the drawing.
E.g., I create a simple drawing of a car in JASC WebDraw.
I grab all the elements and scale them simultaneously with the mouse.
WebDraw adds "transform" attributes to EACH element rather than some kind of
transform tag around the entire document. Does this mean that I can't scale
the whole drawing with one simple element?
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="800" height="800">
<rect x="164" y="88" width="306" height="209"
transform="translate(96 375) scale(0.515194 0.480445)
translate(-96 -375)"
style="fill:rgb(0,0,255);stroke:rgb(0,0,0);stroke-width:1"/>
<ellipse cx="456" cy="311" rx="128" ry="64"
transform="translate(96 375) scale(0.515194 0.480445)
translate(-96 -375)"
style="fill:rgb(0,0,255);stroke:rgb(0,0,0);stroke-width:1"/>
<ellipse cx="173.5" cy="98.5" rx="77.5" ry="61.5"
transform="translate(96 375) scale(0.515194 0.480445)
translate(-96 -375)"
style="fill:rgb(0,0,255);stroke:rgb(0,0,0);stroke-width:1"/>
</svg>
Thanks.
David Swearingen
Northrop-Grumman IT
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]