Debian Codegraph @

samples/tests/spec/filters/feMorphology.svg

raw
1 <?xml version="1.0" 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
5 <!--
6
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22 -->
23 <!-- ========================================================================= -->
24 <!-- Morphology filter test. -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ========================================================================= -->
29
30 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
31
32 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body" width="450" height="500" viewBox="0 0 450 500">
33 <title>Filter Effect: feMorphology</title>
34 <!-- ============================================================= -->
35 <!-- Test content -->
36 <!-- ============================================================= -->
37
38 <g>
39 <text x="225" y="50" class="title">
40 Filter Effect: feMorphology
41 </text>
42
43 <g transform="translate(0, 62.5)">
44 <defs>
45
46 <filter id="erode1" filterUnits="objectBoundingBox"
47 x="0%" y="0%" width="100%" height="100%">
48 <feMorphology operator="erode" radius="1"/>
49 </filter>
50
51 <filter id="erode2" filterUnits="objectBoundingBox"
52 x="0%" y="0%" width="100%" height="100%">
53 <feMorphology operator="erode" radius="2"/>
54 </filter>
55
56 <filter id="dilate1" filterUnits="objectBoundingBox"
57 x="0%" y="0%" width="100%" height="100%">
58 <feMorphology operator="dilate" radius="1"/>
59 </filter>
60
61 <filter id="dilate2" filterUnits="objectBoundingBox"
62 x="0%" y="0%" width="100%" height="100%">
63 <feMorphology operator="dilate" radius="3"/>
64 </filter>
65
66 <g id="morphologySource">
67 <rect width="148.933" height="123.284" style="fill:white; fill-opacity:.5" />
68 <g style="fill-rule:nonzero;clip-rule:nonzero;stroke:#000000;stroke-miterlimit:4;">
69 <g>
70 <path style="fill:#FFFFFF;stroke:#6666FF;stroke-width:7.1711;" d="M81.403,78.289H3.585v-64.75h77.818v64.75z"/>
71 <path style="fill:none;stroke:#00FF00;stroke-width:7.1711;" d="M93.261,77.536c0,23.285-18.581,42.163-41.503,42.163c-22.921,0-41.503-18.877-41.503-42.163c0-23.286,18.582-42.163,41.503-42.163c22.922,0,41.503,18.877,41.503,42.163z"/>
72 <path style="fill:none;stroke:#FF0000;stroke-width:7.1711;" d="M98.31,28.445l13.288,27.354l29.714,4.385l-21.501,21.292l5.076,30.064L98.31,97.347l-26.577,14.194l5.076-30.064L55.307,60.184l29.714-4.385L98.31,28.445z"/>
73 <path style="fill:none;stroke:#FFFF00;stroke-width:7.1711;" d="M131.563,26.338c0,28.559-22.79,51.709-50.901,51.709c-22.489,0-40.72-18.521-40.72-41.367c0-18.278,14.584-33.095,32.576-33.095c14.394,0,26.061,11.854,26.061,26.475
74 c0,11.698-9.334,21.181-20.849,21.181c-9.211,0-16.68-7.586-16.68-16.944c0-7.486,5.975-13.555,13.344-13.555c5.895,0,10.674,4.855,10.674,10.844c0,4.791-3.823,8.676-8.54,8.676c-3.773,0-6.832-3.107-6.832-6.941"/>
75 </g>
76 </g>
77 </g>
78
79 </defs>
80 <g class="legend">
81 <g transform="translate(0, 0)">
82 <use xlink:href="#morphologySource" x="35" y="25" style="filter:url(#erode1)" />
83 <text x="110" y="170">type=erode radius=1</text>
84 </g>
85
86 <g transform="translate(225, 0)">
87 <use xlink:href="#morphologySource" x="35" y="25" style="filter:url(#erode2)" />
88 <text x="110" y="170">type=erode radius=2</text>
89 </g>
90
91 <g transform="translate(0, 195)">
92 <use xlink:href="#morphologySource" x="35" y="25" style="filter:url(#dilate1)"/>
93 <text x="110" y="170">type=dilate radius=1</text>
94 </g>
95
96 <g transform="translate(225, 195)">
97 <use xlink:href="#morphologySource" x="35" y="25" style="filter:url(#dilate2)" />
98 <text x="110" y="170">type=dilate radius=3</text>
99 </g>
100
101 </g>
102 </g>
103
104 </g>
105
106 <!-- ============================================================= -->
107 <!-- Batik sample mark -->
108 <!-- ============================================================= -->
109 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
110
111 </svg>
112