- From: J. David Eisenberg <catcode@catcode.com>
- Date: Sat, 25 Aug 2001 12:55:21 -0500 (CDT)
- To: www-svg@w3.org
Section 15.7.3 "'feImage' scales the referenced image to fit exactly into the subregion specified by x, y, width and height." This appears to be the case if feImage references a JPG or PNG; if it references a <g>, it doesn't seem to scale, at least not in Batik. If you adjust the width and height in the following example, the picture scales, but the circle doesn't. (Use your favorite picture for pic.jpg) Is the spec wrong, or is Batik? <defs> <filter id="test-feImage-filter" filterUnits="objectBoundingBox" x="-10%" y="-10%" width="120%" height="150%"> <feImage xlink:href="#round" result="output1" x="0" y="0"/> <feImage xlink:href="pic.jpg" result="output2" x="0" y="0"/> <feMerge> <feMergeNode in="output2"/> <feMergeNode in="output1"/> <feMergeNode in="SourceGraphic"/> </feMerge> </filter> <circle id="round" cx="50" cy="50" r="50" fill="#ffc" stroke="black"/> </defs> <g id="test" filter="url(#test-feImage-filter)"> <rect x="10" y="10" width="100" height="100" stroke="red" fill="none"/> </g> </svg> And now, Mr. Grammar Queen simply has to comment on this one: "'feTile' references a previous filter primitive and then stitches the tiles together based on the x, y, width and height values of the referenced filter primitive in order to fill it's own filter primitive subregion." Please get rid of the apostrophe in "it's". --- J. David Eisenberg http://catcode.com/
Received on Saturday, 25 August 2001 13:55:35 UTC