preserveAlpha property

Indicates that the convolution will apply to all channels or just the color channels.

This property is read-only.

Scalable Vector Graphics: Filter Effects, Section 15.25.12Internet Explorer 10

 

Syntax

JavaScript
boolean = object.preserveAlpha

 

Property values

Type: SVGAnimatedBoolean

One of the following:

ValueCondition
false
false

Indicates that the convolution will apply to all channels, including the alpha channel.

true
true

Indicates that the convolution will apply only to the color channels. In this case, the filter will temporarily un-premultiply the color component values, apply the kernel, and then re-premultiply at the end.

 

Standards information

Remarks

If preserveAlpha is not specified, then the effect is as if a value of false were specified.

See also

SVGFEConvolveMatrixElement

 

 

Show: