blob: db124e7af4b534fc25875564a14083e4dabe8f25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
---
title: edgeMode
slug: Web/SVG/Attribute/edgeMode
tags:
- SVG
- SVG属性
- 滤镜
- 需要兼容性表
- 需要示例
translation_of: Web/SVG/Attribute/edgeMode
---
<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG属性参考主页</a></p>
<p><code>edgeMode</code>属性确定了当核心位于输入图像的边缘或贴近输入图像的边缘时,如何取用颜色值用于扩展输入图像,从而可以应用矩阵操作。</p>
<p>如果没有指定<code>edgeMode</code>属性,等效于值被指定为<code>duplicate</code>。</p>
<h2 id="用法">用法</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="row">类别</th>
<td>无</td>
</tr>
<tr>
<th scope="row">值</th>
<td><strong>duplicate</strong> | wrap | none</td>
</tr>
<tr>
<th scope="row">可变性</th>
<td>Yes</td>
</tr>
<tr>
<th scope="row">规范文档</th>
<td><a href="http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElementEdgeModeAttribute" rel="external">SVG 1.1 (2nd Edition)</a></td>
</tr>
</tbody>
</table>
<dl>
<dt>duplicate</dt>
<dd>它指示输入图像沿着每条边扩展,复制输入图像的给定边缘上的颜色值。</dd>
<dt>wrap</dt>
<dd>它指示扩展输入图像,从图像相对的边缘取色。</dd>
<dt>none</dt>
<dd>它指示扩展输入图像,用0作为RGBA的像素值。</dd>
</dl>
<h2 id="示例">示例</h2>
<h2 id="元素">元素</h2>
<p>以下元素可以使用<code>edgeMode</code>属性:</p>
<ul>
<li>{{ SVGElement("feConvolveMatrix") }}</li>
</ul>
|