SVG – Learning by Coding

[ filter_Displacement.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="dismap" filterUnits="userSpaceOnUse" x="20" y="70" width="375" height="220">

15: 
      <feImage xlink:href="bilder/bild1.jpg" result="b1"/>

16: 
      <feImage xlink:href="bilder/bild2.jpg" result="b2"/>

17: 
      <feDisplacementMap in="b2" in2="b1" scale="80" xChannelSelector="R" yChannelSelector="B"/>

18: 
    </filter>

​19: 20: 
  </defs>

​21: 22: 
  <title>SVG Learning by Coding</title>

23: 
  <desc>SVG-Spezifikation in Beispielen</desc>

24: 
  <text x="20" y="30" style="fill: #000; font-size: 24px">

25: 
    Filter-Element feDisplacementMap</text>

​26: 27: 
  <rect x="20" y="70" width="375" height="220" style="filter: url(#dismap)"/>

​28: 29: 
</svg>

[zum Anfang]