aboutsummaryrefslogtreecommitdiffstats
path: root/test/resources/fop/svg/images.svg
blob: cad4de98885f036fe7118d59f54a27a2ef6b81c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
      "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">

<g>

<text x="20" y="20" style="font-size:18">Images in SVG</text>

<text x="20" y="35" style="font-size:12">Jpeg</text>
<image x="30" y="55" width="100" height="80" xlink:href="logo.jpg"/>
</g>

<text x="20" y="160" style="font-size:12">Effect or Bitmap</text>
<g>
<defs>
      <filter id="Turb1" filterUnits="objectBoundingBox"
              x="0%" y="0%" width="100%" height="100%">
        <feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="1"/>
      </filter>
      <filter id="Turb2" filterUnits="objectBoundingBox"
              x="0%" y="0%" width="100%" height="100%">
        <feTurbulence type="fractalNoise" baseFrequency="0.15" numOctaves="1"/>
      </filter>
</defs>
    <rect x="25" y="165" width="100" height="75" style="filter:url(#Turb1)" />


<text x="20" y="255" style="font-size:12">Transparency</text>
    <rect x="20" y="260" width="40" height="35" style="fill:blue" />
<text x="60" y="305" style="font-size:20;font-weight:bold">SEE</text>
    <rect x="25" y="265" width="100" height="75" style="filter:url(#Turb2)" />


<text x="200" y="35" style="font-size:12">Scaled</text>
<g transform="scale(4)">
    <rect x="55" y="15" width="25" height="18.75" style="filter:url(#Turb1)" />
</g>

</g>

</svg>