<svg version="1.2" width="600" height="300" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
<defs> | |
<filter id="image" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" x="0" y="0" width="1" height="1"> | |
<feImage xlink:href="resources/green.png" result="image-out" width="200" height="200" /> | |
</filter> | |
</defs> | |
<rect filter="url(#image)" fill="none" stroke="green" x="50" y="50" width="200" height="200"/> | |
</svg> |