mozilla

Revision 333269 of preserveAlpha

  • Revision slug: SVG/Attribute/preserveAlpha
  • Revision title: preserveAlpha
  • Revision id: 333269
  • Created:
  • Creator: Jeremie
  • Is current revision? No
  • Comment

Revision Content

« SVG Attribute reference home

the preserveAlpha attribute indicates how a {{ SVGElement("feConvolveMatrix") }} element handled alpha transparency.

A value of false indicates that the convolution matrix will apply to all channels, including the alpha channel. This is the default value.

A value of true indicates that the convolution matrix will only apply to the color channels.

Usage context

Categories None
Value true | false
Animatable Yes
Normative document SVG 1.1 (2nd Edition)

Example

Elements

The following elements can use the preserveAlpha attribute

  • {{ SVGElement("feConvolveMatrix") }}

Revision Source

<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG Attribute reference home</a></p>
<p>the <code>preserveAlpha</code> attribute indicates how a {{ SVGElement("feConvolveMatrix") }} element handled alpha transparency.<br />
  <br />
  A value of <code><span class="attr-value">false</span></code> indicates that the convolution matrix will apply to all channels, including the alpha channel. This is the default value.</p>
<p>A value of <code><span class="attr-value">true</span></code> indicates that the convolution matrix will only apply to the color channels.</p>
<h2 id="Usage_context">Usage context</h2>
<table class="standard-table">
  <tbody>
    <tr>
      <th scope="row">Categories</th>
      <td>None</td>
    </tr>
    <tr>
      <th scope="row">Value</th>
      <td>true | false</td>
    </tr>
    <tr>
      <th scope="row">Animatable</th>
      <td>Yes</td>
    </tr>
    <tr>
      <th scope="row">Normative document</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="Example">Example</h2>
<h2 id="Elements">Elements</h2>
<p>The following elements can use the <code>preserveAlpha</code> attribute</p>
<ul>
  <li>{{ SVGElement("feConvolveMatrix") }}</li>
</ul>
Revert to this revision