![]() |
|
Support for drop shadow filter - Printable Version +- AB4D Forum (https://forum.ab4d.com) +-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4) +--- Forum: ViewerSvg and Ab2d.ReaderSvg (https://forum.ab4d.com/forumdisplay.php?fid=6) +--- Thread: Support for drop shadow filter (/showthread.php?tid=117) |
Support for drop shadow filter - gobler - 05-04-2011 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> RE: Support for drop shadow filter - abenedik - 05-04-2011 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. |