SVG – Learning by Coding

[ filter_ConvolveMatrix.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 07/04 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="conv" filterUnits="objectBoundingBox" x="0" y="0"
15:       width="370" height="220">
16:       <feConvolveMatrix in="SourceGraphic" edgeMode="wrap" preserveAlpha="true"
17:         order="15,1" kernelMatrix="1 0 1 0 1 0 1 0 1 0 1 0 1 0 1"/>    
18:       <!--
19:         edgeMode-Werteduplicatenone oder wrap (duplicate)
20:         preserveAlpha-Wertefalse oder true (false)
21:         weitere AttributedivisortargetXtargetY
22:       -->
23:     </filter>
24: 
25:   </defs>
26: 
27:   <title>SVG Learning by Coding</title>
28:   <desc>SVG-Spezifikation in Beispielen</desc>
29:   <text x="20" y="30" style="fill: #000; font-size: 24px">
30:     Filter-Element feConvolveMatrix</text>
31: 
32:   <image xlink:href="bilder/bild1.jpg" x="20" y="70" width="375" height="220"
33:     style="filter: url(#conv)"/>
34: 
35: </svg>

[zum Anfang]