【发布时间】:2015-12-17 02:17:43
【问题描述】:
【问题讨论】:
-
我接受了您的回答,并将在新问题中重新制定要求。
【问题讨论】:
为图像添加剪辑路径,您将看到剪辑后的图像。
我通过在剪切后的图像后面添加一个不透明度低的图像的附加副本,使它看起来更像您的示例。
<svg width="100%" height="100%">
<defs>
<clipPath id="sample" clipPathUnits="userSpaceOnUse">
<text x="85" y="330" font-family="sans-serif" font-size="380" font-weight="bold">I CAM</text>
</clipPath>
</defs>
<image transform="scale(0.4)" xlink:href="http://netghost.narod.ru/gff/sample/images/png/marble24.png" x="20" y="20" width="1419" height="1001" opacity="0.3" />
<image transform="scale(0.4)" xlink:href="http://netghost.narod.ru/gff/sample/images/png/marble24.png" x="20" y="20" width="1419" height="1001" clip-path="url(#sample)" />
</svg>
【讨论】: