Support for drop shadow filter
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"

<svg width="100%" height="100%" version="1.1"

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

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

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)