chromium/third_party/blink/web_tests/svg/W3C-SVG-1.1/resources/filters-conv-01-f.svg

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">  
 
<!--======================================================================-->
<!--=  Copyright 2000 World Wide Web Consortium, (Massachusetts          =-->
<!--=  Institute of Technology, Institut National de Recherche en        =-->
<!--=  Informatique et en Automatique, Keio University). All Rights      =-->
<!--=  Reserved. See http://www.w3.org/Consortium/Legal/.                =-->
<!--======================================================================-->
<!--======================================================================-->
<!--                                                                      -->
<!-- filters-convolve-BE-06.svg                                           -->
<!-- renamed for 1.1 suite to filters-conv-01-f.svg                       -->
<!--                                                                      -->
<!-- Test which verifies the basic facilities of feConvolveMatrix.        -->
<!--                                                                      -->
<!-- Author : Vincent Hardy 24-Apr-2000                                   -->
<!-- Revised for 1.1 : Mike Bultrowicz, 4 February 2002                   -->
<!--                                                                      -->
<!-- History:                                                             -->
<!--  24-Apr-2000, VH: Serial#1 created.                                  -->
<!--  03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# .       -->
<!--  16-Aug-2000, LH="rename" ser#2.                                     -->
<!--  17-Aug-2000, JF: Fix validation error. edgemode->edgeMode.          -->
<!--  21-Aug-2000, VH: Added filterUnits and filter effect region to each -->
<!--                   filter definition. ser#3                           -->
<!--                                                                      -->
<!--======================================================================-->
<!--======================================================================-->
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
<!--======================================================================-->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="480" height="360">
    <SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
        <OperatorScript>
			<Paragraph>
				Test which verifies the basic facilities of 
				feConvolveMatrix.
			</Paragraph> 
			<Paragraph>
				This test defines six filters that exercise traditional 
				convolutions: uniform blur, vertical and horizontal 
				blurs, edge detection, embossing and sharpening. Note 
				that the edge detection filter produces a fully 
				transparent image because the alpha chanel is convolved 
				and produces 0 values.
			</Paragraph> 
        </OperatorScript>
    </SVGTestCase>
	<title id="test-title">filters-conv-01-f</title>
	<desc id="test-desc">Test which verifies the basic facilities of feConvolveMatrix.</desc>
	<!--======================================================================-->
	<!--Content of Test Case follows...                  =====================-->
	<!--======================================================================-->
	<g id="test-body-content">
		<!--Generated by the Java 2D API Graphics2D SVG Generator, Sun Microsystems Inc.-->
		<g transform="translate(20, 40)">
			<defs id="defs1">
				<filter id="convolve1" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
					<feConvolveMatrix order="3 3" kernelMatrix="0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111 0.1111" edgeMode="none"/>
				</filter>
				<filter id="convolve2" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
					<feConvolveMatrix order="3 3" kernelMatrix="-1 -1 -1 -1 8 -1 -1 -1 -1" edgeMode="none"/>
				</filter>
				<filter id="convolve3" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
					<feConvolveMatrix order="3 3" kernelMatrix="-1 -1 -1 -1 9 -1 -1 -1 -1" edgeMode="none"/>
				</filter>
				<filter id="convolve4" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
					<feConvolveMatrix order="3 3" kernelMatrix="-2 0 0 0 1 0 0 0 2" edgeMode="none"/>
				</filter>
				<filter id="convolve5" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
					<feConvolveMatrix order="3 1" kernelMatrix="0.3333 0.3333 0.3333" edgeMode="none"/>
				</filter>
				<filter id="convolve6" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%">
					<feConvolveMatrix order="1 3" kernelMatrix="0.3333 0.3333 0.3333" edgeMode="none"/>
				</filter>
			</defs>
			<g shape-rendering="geometricPrecision" text-rendering="geometricPrecision" >
				<text x="10" y="20" stroke="none" opacity="1" filter="none" >Blur (3x3)</text>
				<g opacity="1" filter="none" >
					<image width="50" height="63" xlink:href="filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve1)" />
				</g>
				<text x="10" y="20" transform="translate(150,0)" stroke="none" opacity="1" filter="none" >Edge Detection (3x3)</text>
				<g transform="translate(150,0)" opacity="1" filter="none" >
					<image width="50" height="63" xlink:href="filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve2)" />
				</g>
				<text x="10" y="20" transform="translate(300,0)" stroke="none" opacity="1" filter="none" >Sharpening (3x3)</text>
				<g transform="translate(300,0)" opacity="1" filter="none" >
					<image width="50" height="63" xlink:href="filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve3)" />
				</g>
				<text x="10" y="20" transform="translate(0,93)" stroke="none" opacity="1" filter="none" >Embossing (3x3)</text>
				<g transform="translate(0,93)" opacity="1" filter="none" >
					<image width="50" height="63" xlink:href="filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve4)" />
				</g>
				<text x="10" y="20" transform="translate(150,93)" stroke="none" opacity="1" filter="none" >Horizontal blur (3x1)</text>
				<g transform="translate(150,93)" opacity="1" filter="none" >
					<image width="50" height="63" xlink:href="filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve5)" />
				</g>
				<text x="10" y="20" transform="translate(300,93)" stroke="none" opacity="1" filter="none" >Vertical blur (1x3)</text>
				<g transform="translate(300,93)" opacity="1" filter="none" >
					<image width="50" height="63" xlink:href="filters-conv-01-f.includeimage.png" x="10" y="30" filter="url(#convolve6)" />
				</g>
			</g>
		</g>
	</g>
	<!--======================================================================-->
	<!--Legend and frame:      Title, suite and SVG document serialization====-->
	<!--======================================================================-->
    <g id="test-legend" fill="black" font-family="Helvetica" font-size="10">
        <rect x="10" y="300" width="275" height="50" fill="none" stroke="#000000"/>
        <path fill="none" stroke="#000000" d="M10 315 h275 M205 315 v35 M10 336 h195 M205 332 h80"/>
        <text x="25" y="311">Scalable Vector Graphics (SVG) v1.1 Conformance Suite</text>
        <a xlink:href="copyright-documents-19990405.html">
            <text x="12" y="347" fill="blue" >Copyright 2002 W3C. All Rights Reserved.</text>
        </a>
        <text font-size="12" x="35" y="330">filters-conv-01</text>
        <text font-size="10" x="210" y="327">$Revision: 1.1 $</text>
        <text font-size="10" x="210" y="345">Release 1.0</text>
        <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
    </g>
</svg>