Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > More questions on svg

Reply
Thread Tools

More questions on svg

 
 
Dung Ping
Guest
Posts: n/a
 
      10-30-2005
Hi,

First, I like to know if there is a newsgroup for svg in general. I've
only seen one on the Netescape Mozilla.svg, but I have been using the
IE browser. This forum may not be the most appropriate one for
discussions on svg.

Then, in the following svg code, I like to add background color and
border. I know that this piece <. . . width="200" height="200" . . .>
defines the area of background. What and where do I add code for
background color and border?

<svg width="200" height="200" version="1.1"
xmlns="http://www.w3.org/2000/svg">

<circle cx="100" cy="100" r="80" stroke="black" stroke-width="2"
fill='red' />

Thanks for teaching.
Dung Ping

 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      10-31-2005

Dung Ping wrote:

> This forum may not be the most appropriate one for
> discussions on svg.


It is a Usenet newsgroup and not a forum. Discussions on SVG are fine
here in my view but if you are looking for an SVG specific list/group
then try <http://groups.yahoo.com/group/svg-developers/>.
But wherever you go consider that SVG 1.0 and SVG 1.1 are not new, that
the Adobe SVG viewer version 3 is some years old already so there is a
lots of existing materials, documentation, web sites, archived posts
that you can and should check.
See the SVG wiki for instance:
<http://svg-whiz.com/wiki/index.php?title=Main_Page>
And I have already pointed you to the SVG specification. It helps
reading the section on the rendering model
<http://www.w3.org/TR/SVG11/render.html> to be able to answer your question.

> Then, in the following svg code, I like to add background color and
> border. I know that this piece <. . . width="200" height="200" . . .>
> defines the area of background. What and where do I add code for
> background color and border?
>
> <svg width="200" height="200" version="1.1"
> xmlns="http://www.w3.org/2000/svg">



An SVG graphics itself does not have a setable background color, you
would need to put a <rect> element as the first element to be drawn in
the SVG document and set fill and stroke so that you have borders and
background. But SVG graphics can be zoomed and panned so depending on
your needs how far the background should reach when someone zooms and
pans you need to make sure you set the right coordinates and dimensions
on that rect or event adjust them when panning or zooming happens.



--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: svg-chart 1.1 SVG Charting Library Helmut Jarausch Python 0 05-20-2008 11:05 AM
svg to svg saving problem milof83 Java 1 08-18-2006 07:36 PM
[SVG] probleme dessin d'images SVG avec Batik Mardagg Java 0 05-12-2006 02:13 PM
[SVG] problem with SVG image drawing with Batik Library Mardagg Java 0 05-12-2006 02:12 PM
[SVG] using image-tag to integrate SVG in SVG Arne Nordmann XML 0 06-28-2004 01:16 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57