Debian Codegraph @

rsvg/tests/fixtures/reftests/filter-image-from-reference-page.svg

raw symbols SCIP
1 <!-- This was taken from the reference page over at
2 https://www.w3.org/TR/SVG11/filters.html#feImageElement -->
3 <svg width="600" height="250" viewBox="0 0 600 250"
4 xmlns="http://www.w3.org/2000/svg"
5 xmlns:xlink="http://www.w3.org/1999/xlink">
6 <title>Example feImage - Examples of feImage use</title>
7 <desc>Three examples of using feImage, the first showing the
8 default rendering, the second showing the image fit
9 to a box and the third showing the image
10 shifted and clipped.</desc>
11 <defs>
12 <filter id="Default">
13 <feImage xlink:href="svg1.1/images/smiley.png" />
14 </filter>
15 <filter id="Fitted" primitiveUnits="objectBoundingBox">
16 <feImage xlink:href="svg1.1/images/smiley.png"
17 x="0" y="0" width="100%" height="100%"
18 preserveAspectRatio="none"/>
19 </filter>
20 <filter id="Shifted">
21 <feImage xlink:href="svg1.1/images/smiley.png"
22 x="500" y="5"/>
23 </filter>
24 </defs>
25 <rect fill="none" stroke="blue"
26 x="1" y="1" width="598" height="248"/>
27 <g>
28 <rect x="50" y="25" width="100" height="200" filter="url(#Default)"/>
29 <rect x="50" y="25" width="100" height="200" fill="none" stroke="green"/>
30 <rect x="250" y="25" width="100" height="200" filter="url(#Fitted)"/>
31 <rect x="250" y="25" width="100" height="200" fill="none" stroke="green"/>
32 <rect x="450" y="25" width="100" height="200" filter="url(#Shifted)"/>
33 <rect x="450" y="25" width="100" height="200" fill="none" stroke="green"/>
34 </g>
35 </svg>