SVG – Learning by Coding

[ filter_Morphology.svg --> Grafik anzeigen ]

 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: <!--    AuthorDrThomas 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="morph-dil" filterUnits="userSpaceOnUse" x="20" y="290" width="375" height="220">
15:       <feMorphology in="SourceGraphic" radius="5,5" operator="dilate"/>
16:     </filter>
17: 
18:     <filter id="morph-ero" filterUnits="userSpaceOnUse" x="395" y="290" width="375" height="220">
19:       <feMorphology in="SourceGraphic" radius="3,3" operator="erode"/>
20:     </filter>
21: 
22:   </defs>
23: 
24:   <title>SVG Learning by Coding</title>
25:   <desc>SVG-Spezifikation in Beispielen</desc>
26:   <text x="20" y="30" style="fill: #000; font-size: 24px">
27:     Filter-Element feMorphology</text>
28: 
29:   <g transform="scale(0.6)">
30:     <image xlink:href="bilder/bild1.jpg" x="20" y="70" width="375" height="220"/>
31:     <image xlink:href="bilder/bild1.jpg" x="20" y="290" width="375" height="220" style="filter: url(#morph-dil)"/>
32:     <image xlink:href="bilder/bild1.jpg" x="395" y="290" width="375" height="220" style="filter: url(#morph-ero)"/>
33:   </g>
34: 
35:   <text x="150" y="340"><tspan style="fill: #000">&lt;feMorphology ... </tspan>
36:     <tspan style="fill: #F00">operator="..."</tspan><tspan style="fill: #000"> /&gt;</tspan>
37:   </text>
38:   <rect x="170" y="360" width="70" height="20" style="fill: #EEE"/>
39:   <text x="185" y="375" style="fill: #F00">dilate</text>
40:   <rect x="240" y="360" width="70" height="20" style="fill: #EEE"/>
41:   <text x="255" y="375" style="fill: #F00">erode</text>
42: 
43: </svg>

[zum Anfang]