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>
#2
Filters are not supported by Ab2d.ReaderSvg and ViewerSvg.

However, WPF supports shadow, blur and some other effects. Check out Effect and BitmapEffiect (for .Net prior to 3.5 SP1) for more. You will have to add them manually.
Andrej Benedik
  


Forum Jump:


Users browsing this thread:
1 Guest(s)