Jean-David Benamou wrote:
> I was wondering if the number of pixels of the area corresponding
> to the fill zone (fro a path element for instance) can be recovered
> using Javascript/Dom thechnique or other ????

Kevin Lindsey to the rescue, as usual :-)
See <http://www.kevlindev.com/geometry/index.html> for useful code. The 
Polygon Information is what you are searching.
Of course, as Ronan states, you have to map this surface to a number of 
pixels (can be fractional!) which is probably easier if you give the 
coordinates in pixels.

> The information is probably there because I assume the SVG engine
> already uses an algorithm to determine this fill zone from
> the path points ....

I doubt ASV (or any other) is keeping a count of the pixels it fills...
Not to mention gradients, clipping, etc.

-- 
Philippe Lhoste
--  (near) Paris -- France
--  Professional programmer and amateur artist
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --


------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
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/

<*> 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/
 

Reply via email to