0
我試圖得到一個平鋪的圖像顯示在一個過濾器和瓷磚正確與其他任何應用程序,無論其他項目繪製在哪裏,AKA平鋪圖像應該以某種方式全局修復。如何排列這些通過SVG過濾器應用的瓷磚?
SVG複製的問題(我知道你可能會使用一個圖案填充正常做到這一點它只是複製我所遇到的問題):
<svg width="700" height="700">
<defs>
<filter width="1" height="1" id="stripe">
<feImage xlink:href="http://i.imgur.com/T5fsm0U.png" height="160" width="80" result="patternimage"></feImage>
<feTile in="patternimage"></feTile>
</filter>
</defs>
<rect x="0" y="0" width="300" height="400" filter="url(#stripe)"></rect>
<rect x="160" y="10" width="300" height="400" filter="url(#stripe)"></rect>
<rect x="200" y="0" width="200" height="200" filter="url(#stripe)"></rect>
</svg>
codepen: http://codepen.io/anon/pen/iEkmL
我只要它的輸出可用作過濾步驟,不用關心是否使用了模式而不是feTile。我覺得答案與filterUnits或primitiveUnits有關,但我不太瞭解如何使用它們來解決問題。
目前還不清楚你在問什麼。你是否試圖做到這一點,無論你在哪裏繪製矩形,模式總是排成一列?換句話說,一個「全球性」固定位置模式? – 2014-09-01 07:39:41
對,對不起。無論矩形在哪裏繪製,模式都應該排列。感謝您的幫助澄清。 – Shadaez 2014-09-01 07:41:13