我正在嘗試使用圖像來掩蓋另一個SVG。我有一個問題,圖像有RGB和alpha通道,所以掩碼使用了兩個通道。僅使用圖像的SVG蒙版alpha通道
我已經試過這現在:
<mask id="mask-1" maskUnits="userSpaceOnUse" x="0" y="0"
width="1600" height="3200">
<rect x="-92" y="-707.5" width="1600" height="3200"
filter="url(#a)"></rect>
</mask>
<filter id="a">
<feImage out="SourceAlpha" x="-92" y="-707.5" width="1600" height="3200"
xlink:href="image.png"
preserveAspectRatio="none" />
</filter>
但它沒有給出所需的輸出。
任何幫助?