blob: 4502b99bbf1fd13b8c98b0866358a038cb59400b (
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
|
---
title: preserveAlpha
slug: Web/SVG/Attribute/preserveAlpha
translation_of: Web/SVG/Attribute/preserveAlpha
---
<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG 属性参考</a></p>
<p><code>preserveAlpha</code> 属性表示{{ SVGElement("feConvolveMatrix") }} 元素怎样处透明度。</p>
<p>取值为 <code><span class="attr-value">false</span></code> 表示 feConvolveMatrix 元素将应用在包括透明度通道的所有的通道。这是默认的选项。</p>
<p>取值为 <code><span class="attr-value">true</span></code> 表示 feConvolveMatrix 仅应用在颜色通道。</p>
<h2 id="用法">用法</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="row">类别</th>
<td>None</td>
</tr>
<tr>
<th scope="row">值</th>
<td><code>true</code> | <code>false</code></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#feConvolveMatrixElementPreserveAlphaAttribute" rel="external">SVG 1.1 (2nd Edition)</a></td>
</tr>
</tbody>
</table>
<h2 id="示例">示例</h2>
<h2 id="元素">元素</h2>
<p>下列元素可以使用 <code>preserveAlpha</code> 属性</p>
<ul>
<li>{{ SVGElement("feConvolveMatrix") }}</li>
</ul>
|