By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,784 Members | 3,274 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,784 IT Pros & Developers. It's quick & easy.

svg: problem of scaling in group of elements

SMRCA
P: 2
Hello to all,

I am new in svg and don't have any idea of all functions

first let me clear what I want to implement,

I want to make a shape in dia that have one textbox, one rectangle on its right side and 2 images in rightmost side,

the code is like .....

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0"?>
  2. <shape xmlns="http://www.daa.com.au/~james/dia-shape-ns" xmlns:svg="http://www.w3.org/2000/svg">
  3.   <name>shape - m2o</name>
  4.   <description>M2O</description>
  5.   <icon>m2o_real.png</icon>
  6.   <aspectratio type="free"/>
  7.   <textbox x1="-60.0" y1="20.0" x2="-60.0" y2="15.0" resize="no" align="right"/> 
  8.   <svg:svg  width="165" height="40">
  9.     <svg:rect x="0" y="5" width="150" height="20" fill="default" stroke="#777777" stroke-width="0.2"/>
  10.     <svg:image x="145" y="-10" width="40" height="40" href="1.png"/>
  11.     <svg:image x="165" y="-10" width="40" height="40" href="2.png" />
  12.   </svg:svg>
  13. </shape>
  14.  

Now i want to scale the rectangle but not the 2 images ,

Can any one tell me what property to set for image ,

I think its preserveAspectRatio but not exactly have any idea,

Please replay me its very urgent,

Thanks,




***Added code tags****
-stang02gt
Nov 14 '08 #1
Share this Question
Share on Google+
1 Reply


Stang02GT
Expert 100+
P: 1,208
Please make sure when you post code that you are using code tags.
Nov 14 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.