Support for drop shadow filter
#1
I'm trying to add drop shadows to some shapes. I found the following sample for using feGaussianBlur and feOffset. When I open it with ViewerSvg, the shadow shows up as solid black. I don’t know if this means that WPF doesn’t support it, or that the current version of ViewerSvg doesn’t support it, or something else.

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

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

<defs>
<filter id="filter" x="0" y="0">
<feGaussianBlur stdDeviation="5"/>
<feOffset dx="5" dy="5"/>
</filter>
</defs>

<rect width="90" height="90"
fill="grey" filter="url(#filter)"/>
<rect width="90" height="90"
fill="yellow" stroke="black"/>

</svg>
  


Messages In This Thread
Support for drop shadow filter - by gobler - 05-04-2011, 04:57 PM
RE: Support for drop shadow filter - by abenedik - 05-04-2011, 09:42 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)