SVG – Learning by Coding
1: <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2: <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3: "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" [
4: <!ATTLIST svg xmlns:xlink CDATA #FIXED "http://www.w3.org/1999/xlink">
5: ]>
6:
7: <!-- SVG - Learning by Coding - http://www.datenverdrahten.de/svglbc/ -->
8: <!-- Author: Dr. Thomas Meinike 12/03 - thomas@handmadecode.de -->
9:
10: <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
11:
12: <defs>
13:
14: <filter id="merge" filterUnits="userSpaceOnUse" x="20" y="70" width="375" height="220">
15: <feImage xlink:href="#bild1" result="b1"/>
16: <feImage xlink:href="#bild2" result="b2"/>
17: <feMerge>
18: <feMergeNode in="b1"/>
19: <feMergeNode in="b2"/>
20: </feMerge>
21: </filter>
22:
23: <image id="bild1" xlink:href="bilder/bild1.jpg" x="20" y="70"
24: width="375" height="220" opacity="0.6"/>
25: <image id="bild2" xlink:href="bilder/bild2.jpg" x="20" y="70"
26: width="375" height="220" opacity="0.4"/>
27:
28: </defs>
29:
30: <title>SVG - Learning by Coding</title>
31: <desc>SVG-Spezifikation in Beispielen</desc>
32: <text x="20" y="30" style="fill: #000; font-size: 24px">
33: Filter-Elemente feMerge und feMergeNode</text>
34:
35: <rect x="20" y="70" width="375" height="220" style="filter: url(#merge)"/>
36:
37: </svg>
[zum Anfang]