I don't know about using filters as a part of CSS like that (nor in which 
browsers it would work), but  take a look at
http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html#filters

Specifically, both feColorMatrix and feComponentTransfer allow surgery on 
ranges of colors. I can't right now think of a way of doing quite what you have 
in mind other than converting high values of R+G+B = W to transparent and then 
letting an underlying black rectangle shine through. 

David

----- Original Message ----- 
  From: Stanimir Stamenkov 
  To: svg-developers@yahoogroups.com 
  Sent: Saturday, August 14, 2010 6:03 PM
  Subject: [svg-developers] Filter replacing colors selectively


    
  I have very basic knowledge of SVG and I've been able to apply SVG filters to 
  images as part of my browser user style sheet like:

  img {
  filter: url(my-svg-filters.xml#filter-a);
  }

  Is there a way, what would be the filter definition to replace just certain 
  colors in an image, e.g. I want to swap black and white but keep the rest as 
is?

  -- 
  Stanimir



  

[Non-text portions of this message have been removed]



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

-----
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-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:
    svg-developers-dig...@yahoogroups.com 
    svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to