To achieve this you would have to paint your mask in black on a white 
background. Unfortunately there's no way to set a background color 
for a mask. It's alway transparent/equivalent to black.
What you can do is place a white rectangle of large dimension as the 
first element in your mask and put black shapes atop it. As long as 
the rectangle is large enough to cover all shapes to which the mask 
is applied this would do what you want.

It could also be done with filters, using feBlend with mode="darken" 
on the alpha channels. But masking is probably more efficiently 
implemented in user agents, and making the rectangle large enough 
shouldn't be too hard to do.

The same can also be done with a clip path. This wouldn't allow for 
partial transparency, as masking does, but if you just want a binary 
mask, it would render more efficiently than masking. It's a bit 
tricky though. You'd have to draw all shapes of your clip path in one 
single path element. First draw a large rectangle, covering the whole 
image area, and in that rectangle draw other shapes, but the rotation 
numbers of the inside shapes must be the negative of the rotation 
number of the rectangle. If drawing the rectangle clockwise, a circle 
inside it would have to be drawn counter-clockwise. This method is 
somewhat ugly, because you can't use basic shapes here, or different 
xml elements for different graphical elements, but everything needs 
to be transformed to path commands and appended into one d attribute.


Regards
Frank

--- In [email protected], "svgprof" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> how can I declare a shape (eg. filled circle) which prevents 
drawing?
> When I draw a shape inside a mask, then the shape allows drawing and
> the outside area is blocked. But I need the reverse: all outside 
area
> should allow drawing, but the shape-interior should be a hole.
> 
> Thank you
>



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

-----
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:
    mailto:[EMAIL PROTECTED] 
    mailto:[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/

Reply via email to