473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

svg: problem of scaling in group of elements

SMRCA
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
1 1256
Stang02GT
1,208 Expert 1GB
Please make sure when you post code that you are using code tags.
Nov 14 '08 #2

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

Similar topics

7
by: Karthik | last post by:
Hi, I am just curious if there is any existing API in PHP for rendering SVG (Scalable Vector Graphics). A quick search in Google pointed to me a place in zend.com -...
6
by: Sascha Kerschhofer | last post by:
Hi, I wonder if SVG can be scaled, when embedded in a HTML Dokument like an image with its width and height atributes.. Adobe SVG Viewer seems to crop my SVG image when using width and height....
27
by: Mark | last post by:
I'm curious to get feedback regarding the potential SVG has in performing the same functionality as PDF for fixing documents. Thanks. Mark
4
by: alainpoint | last post by:
Hi, I have a simple question. How do you get Opera to work with SVG and Javascript? Can someone point me to a site where the two work together? Many thanks Alain
1
by: RC | last post by:
The Subject says its all. Sorry for waste your time. I couldn't find the SVG (Scalable Vector Graphics) discuss group. Since SVG is XML file, so I posted this message in this XML group. ...
1
by: David DeLella | last post by:
I currently have a SVG object using the adobe svg plugin for Visual C# .NET 2003. The tool is working fine....I can load the svg and use all the feature of svg including zooming, scaling, etc. ...
9
by: Alan J. Flavell | last post by:
A chance remark on the German-language web authoring group (dciwam) called my attention to http://code.google.com/webstats/index.html An interesting survey of web pages. I haven't really drawn...
61
by: phil-news-nospam | last post by:
Why does SVG need a different tag than other images? IMHO, SVG should be implemented as an image type just like any other image type, allowing it to work with <img> tags, and ... here is the...
3
by: SMH | last post by:
Normally an SVG document is loaded/parsed/interpreted inside an HTML document using an 'object' (or 'embed') element, although there are supposedly other ways too. The problem is, the SVG document...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.