edgeMode

edgeMode attribute determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image.

You can use this attribute with the following SVG elements:

feConvolveMatrix

For <feConvolveMatrix> , edgeMode determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image.

duplicate | wrap | none
默认值 duplicate
Animatable Yes
duplicate

This value indicates that the input image is extended along each of its borders as necessary by duplicating the color values at the given edge of the input image.

wrap

This value indicates that the input image is extended by taking the color values from the opposite edge of the image.

none

This value indicates that the input image is extended with pixel values of zero for R, G, B and A.

feGaussianBlur

For <feGaussianBlur> , edgeMode determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image.

duplicate | wrap | none
默认值 none
Animatable Yes
duplicate

This value indicates that the input image is extended along each of its borders as necessary by duplicating the color values at the given edge of the input image.

wrap

This value indicates that the input image is extended by taking the color values from the opposite edge of the image.

none

This value indicates that the input image is extended with pixel values of zero for R, G, B and A.

规范

规范 状态 注释
Filter Effects Module Level 1
The definition of 'edgeMode for <feGaussianBlur>' in that specification.
工作草案 Initial definition for <feGaussianBlur>
Filter Effects Module Level 1
The definition of 'edgeMode for <feConvolveMatrix>' in that specification.
工作草案 无变化
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'edgeMode for <feConvolveMatrix>' in that specification.
推荐 Initial definition for <feConvolveMatrix>

Found a problem with this page?

最后修改: , 由 MDN 贡献者