| 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 |
<!-- Test description here --> |
| 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: feComponentTransfer</title> |
| 34 |
<!-- ============================================================= --> |
| 35 |
<!-- Test content --> |
| 36 |
<!-- ============================================================= --> |
| 37 |
<g id="testContent"> |
| 38 |
|
| 39 |
<g> |
| 40 |
<text x="225" y="50" class="title"> |
| 41 |
Filter Effect: feComponentTransfer |
| 42 |
</text> |
| 43 |
<g transform="translate(30, 62.5)"> |
| 44 |
<defs> |
| 45 |
|
| 46 |
<filter id="turbSource" filterUnits="objectBoundingBox" |
| 47 |
x="0%" y="0%" width="100%" height="100%"> |
| 48 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/> |
| 49 |
</filter> |
| 50 |
|
| 51 |
<filter id="linearRed" filterUnits="objectBoundingBox" |
| 52 |
x="0%" y="0%" width="100%" height="100%"> |
| 53 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/> |
| 54 |
<feComponentTransfer |
| 55 |
x="0%" y="0%" width="100%" height="100%" > |
| 56 |
<feFuncR type="linear" slope="1" intercept="0" /> |
| 57 |
<feFuncG type="linear" slope="0" intercept="0" /> |
| 58 |
<feFuncB type="linear" slope="0" intercept="0" /> |
| 59 |
<feFuncA type="linear" slope="0" intercept="1" /> |
| 60 |
</feComponentTransfer> |
| 61 |
</filter> |
| 62 |
|
| 63 |
<filter id="linearGreen" filterUnits="objectBoundingBox" |
| 64 |
x="0%" y="0%" width="100%" height="100%"> |
| 65 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/> |
| 66 |
<feComponentTransfer |
| 67 |
x="0%" y="0%" width="100%" height="100%" > |
| 68 |
<feFuncR type="linear" slope="0" intercept="0" /> |
| 69 |
<feFuncG type="linear" slope="1" intercept="0" /> |
| 70 |
<feFuncB type="linear" slope="0" intercept="0" /> |
| 71 |
<feFuncA type="linear" slope="0" intercept="1" /> |
| 72 |
</feComponentTransfer> |
| 73 |
</filter> |
| 74 |
|
| 75 |
<filter id="linearBlue" filterUnits="objectBoundingBox" |
| 76 |
x="0%" y="0%" width="100%" height="100%"> |
| 77 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/> |
| 78 |
<feComponentTransfer |
| 79 |
x="0%" y="0%" width="100%" height="100%" > |
| 80 |
<feFuncR type="linear" slope="0" intercept="0" /> |
| 81 |
<feFuncG type="linear" slope="0" intercept="0" /> |
| 82 |
<feFuncB type="linear" slope="1" intercept="0" /> |
| 83 |
<feFuncA type="linear" slope="0" intercept="1" /> |
| 84 |
</feComponentTransfer> |
| 85 |
</filter> |
| 86 |
|
| 87 |
<filter id="linearAlpha" filterUnits="objectBoundingBox" |
| 88 |
x="0%" y="0%" width="100%" height="100%"> |
| 89 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/> |
| 90 |
<feComponentTransfer |
| 91 |
x="0%" y="0%" width="100%" height="100%" > |
| 92 |
<feFuncR type="linear" slope="0" intercept="0" /> |
| 93 |
<feFuncG type="linear" slope="0" intercept="0" /> |
| 94 |
<feFuncB type="linear" slope="0" intercept="0" /> |
| 95 |
<feFuncA type="linear" slope="1" intercept="0" /> |
| 96 |
</feComponentTransfer> |
| 97 |
</filter> |
| 98 |
|
| 99 |
<filter id="linearFiftyPercentGray" filterUnits="objectBoundingBox" |
| 100 |
x="0%" y="0%" width="100%" height="100%"> |
| 101 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/> |
| 102 |
<feComponentTransfer |
| 103 |
x="0%" y="0%" width="100%" height="100%" > |
| 104 |
<feFuncR type="linear" slope="0" intercept=".5" /> |
| 105 |
<feFuncG type="linear" slope="0" intercept=".5" /> |
| 106 |
<feFuncB type="linear" slope="0" intercept=".5" /> |
| 107 |
<feFuncA type="linear" slope="0" intercept="1" /> |
| 108 |
</feComponentTransfer> |
| 109 |
</filter> |
| 110 |
|
| 111 |
<filter id="linearBrighten" filterUnits="objectBoundingBox" |
| 112 |
x="0%" y="0%" width="100%" height="100%"> |
| 113 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/> |
| 114 |
<feComponentTransfer |
| 115 |
x="0%" y="0%" width="100%" height="100%" > |
| 116 |
<feFuncR type="linear" slope="1.5" intercept="0" /> |
| 117 |
<feFuncG type="linear" slope="1.5" intercept="0" /> |
| 118 |
<feFuncB type="linear" slope="1.5" intercept="0" /> |
| 119 |
<feFuncA type="linear" slope="1" intercept="0" /> |
| 120 |
</feComponentTransfer> |
| 121 |
</filter> |
| 122 |
|
| 123 |
<filter id="linearDarken" filterUnits="objectBoundingBox" |
| 124 |
x="0%" y="0%" width="100%" height="100%"> |
| 125 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/> |
| 126 |
<feComponentTransfer |
| 127 |
x="0%" y="0%" width="100%" height="100%" > |
| 128 |
<feFuncR type="linear" slope=".5" intercept="0" /> |
| 129 |
<feFuncG type="linear" slope=".5" intercept="0" /> |
| 130 |
<feFuncB type="linear" slope=".5" intercept="0" /> |
| 131 |
<feFuncA type="linear" slope="1" intercept="1" /> |
| 132 |
</feComponentTransfer> |
| 133 |
</filter> |
| 134 |
|
| 135 |
<filter id="linearOffsetDarken" filterUnits="objectBoundingBox" |
| 136 |
x="0%" y="0%" width="100%" height="100%"> |
| 137 |
<feTurbulence type="turbulence" baseFrequency="0.05" numOctaves="2"/> |
| 138 |
<feComponentTransfer |
| 139 |
x="0%" y="0%" width="100%" height="100%" > |
| 140 |
<feFuncR type="linear" slope=".5" intercept="-.1" /> |
| 141 |
<feFuncG type="linear" slope=".5" intercept="-.1" /> |
| 142 |
<feFuncB type="linear" slope=".5" intercept="-.1" /> |
| 143 |
<feFuncA type="linear" slope="1" intercept="1" /> |
| 144 |
</feComponentTransfer> |
| 145 |
</filter> |
| 146 |
|
| 147 |
</defs> |
| 148 |
|
| 149 |
<g class="legend"> |
| 150 |
<g id="reference_Group"> |
| 151 |
<rect x="25" y="25" width="100" height="75" style="filter:url(#turbSource)" /> |
| 152 |
<text x="75" y="117">Reference Image</text> |
| 153 |
</g> |
| 154 |
|
| 155 |
<g id="linearRed_Group" transform="translate(120, 0)"> |
| 156 |
<rect x="25" y="25" width="100" height="75" style="filter:url(#linearRed)" /> |
| 157 |
<text x="75" y="117">type=linear</text> |
| 158 |
<text x="75" y="129">Red channel. Alpha 1.</text> |
| 159 |
</g> |
| 160 |
|
| 161 |
<g id="linearGreen_Group" transform="translate(240, 0)"> |
| 162 |
<rect x="25" y="25" width="100" height="75" style="filter:url(#linearGreen)" /> |
| 163 |
<text x="75" y="117">type=linear</text> |
| 164 |
<text x="75" y="129">Red channel. Alpha 1.</text> |
| 165 |
</g> |
| 166 |
|
| 167 |
<g id="linearBlue_Group" transform="translate(0, 120)"> |
| 168 |
<rect x="25" y="25" width="100" height="75" style="filter:url(#linearBlue)" /> |
| 169 |
<text x="75" y="117">type=linear</text> |
| 170 |
<text x="75" y="129">Blue channel. Alpha 1.</text> |
| 171 |
</g> |
| 172 |
|
| 173 |
<g id="linearAlpha_Group" transform="translate(120, 120)"> |
| 174 |
<rect x="25" y="25" width="100" height="75" style="filter:url(#linearAlpha)" /> |
| 175 |
<text x="75" y="117">type=linear</text> |
| 176 |
<text x="75" y="129">Alpha Channel.</text> |
| 177 |
</g> |
| 178 |
|
| 179 |
<g id="linearFiftyPercentGray_Group" transform="translate(240, 120)"> |
| 180 |
<rect x="25" y="25" width="100" height="75" style="filter:url(#linearFiftyPercentGray)" /> |
| 181 |
<text x="75" y="117">type=linear</text> |
| 182 |
<text x="75" y="129">50% gray</text> |
| 183 |
</g> |
| 184 |
|
| 185 |
<g id="linearBrighten_Group" transform="translate(0, 240)"> |
| 186 |
<rect x="25" y="25" width="100" height="75" style="filter:url(#linearBrighten)" /> |
| 187 |
<text x="75" y="117">type=linear</text> |
| 188 |
<text x="75" y="129">Brighten</text> |
| 189 |
</g> |
| 190 |
|
| 191 |
<g id="linearDarken_Group" transform="translate(120, 240)"> |
| 192 |
<rect x="25" y="25" width="100" height="75" style="filter:url(#linearDarken)" /> |
| 193 |
<text x="75" y="117">type=linear</text> |
| 194 |
<text x="75" y="129">Darken</text> |
| 195 |
</g> |
| 196 |
|
| 197 |
<g id="linearOffsetDarken_Group" transform="translate(240, 240)"> |
| 198 |
<rect x="25" y="25" width="100" height="75" style="filter:url(#linearOffsetDarken)" /> |
| 199 |
<text x="75" y="117">type=linear</text> |
| 200 |
<text x="75" y="129">Offset</text> |
| 201 |
</g> |
| 202 |
</g> |
| 203 |
|
| 204 |
</g> |
| 205 |
|
| 206 |
</g> |
| 207 |
|
| 208 |
</g> |
| 209 |
|
| 210 |
<!-- ============================================================= --> |
| 211 |
<!-- Batik sample mark --> |
| 212 |
<!-- ============================================================= --> |
| 213 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 214 |
|
| 215 |
</svg> |