XML technologies / SVG / Filters, transformations and gradients / Using and combining filters and lighting effectively / Filters and masks / The feMerge filter element
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
The filter element <feMerge> combines results from several elements. Inside it, list previous filters’ result values in a <feMergeNode> tag. Combining several at once avoids repeated calls to the <feComposite> element. The listing uses this element instead of the <feComposite> element in the previous example’s filter.
<filter id="SVGObjekt" filterUnits="userSpaceOnUse" width="150" heigth="150">
<feGaussianBlur in="SourceAlpha" stdDeviation="12 6" result="Schatten"/>
<feImage xlink:href="#Bttn" result="Button"/>
<feMerge>
<feMergeNode in="Schatten" />
<feMergeNode in="Button" />
</feMerge>
</filter>
Copyright © verlag moderne industrie GmbH 2001
You may print the online version for your private use.
Otherwise, this chapter from “Das Einsteigerseminar SVG — Webgrafiken mit XML” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
verlag moderne industrie GmbH, Justus-von-Liebig-Straße 1, D-86899 Landsberg/Lech, fon ++49 (0) 81 91 / 125 – 0, leserservice(at)mi-verlag.de
back to top