Re: Problem with Units of SVG

Jason Barnabas <[email protected]>
Newsgroups gmane.text.xml.svg.devel
Message-ID <[email protected]>
> From: Alireza <[email protected]>
> Sent: Sun, March 3, 2013 6:43:47 PM
> 
> hello
> 
> I have an asp.net page which contains auto generated svg shapes.  shape is 
>always a rectangle which is filled in gray and 20 color lines as  stripes cover 
>a part of this rectangle.
> 
> Problem:
> sometimes stroke  width is a fractional number less than 1 according to 
>calculations. In such  cases the stripes aren't shown if units are in pixel. I 
>changed units of lines  to Cm so that fractional numbers are also rendered. This 
>worked but we can not  define unit for polygon the same way. 
>
> Then I tried to define the outer svg  "width" and "height" properties in Cm 
>units so that every thing is shown in CM,  then polygon and stripe lines are 
>scaled and no more proportional. could you  please help?


I don't know if this will help, but here goes. Before I started working with SVG 
I had never used vector graphics. It took me a while to figure out how some 
things worked. Here's one of the things I had trouble wrapping my head around, 
lines have a width of 0.

I mean I knew that from math and trig from school, but coming to the realization 
of this fact helped me to understand why SVG behaved the way it did in some 
cases. Lines have to have strokes to be visible and it has been my experience 
that SVG renders stroke-widths of less than 1 as lighter colors so they look 
smaller but the minimum stroke width is still 1 pixel.

Jason


------------------------------------

-----
To unsubscribe send a message to: [email protected]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.