in2

in2 属性标识给定滤镜图元的第二个输入。它的工作方式与 in 属性完全相同。

你可以将此属性与以下 SVG 元素一起使用

feBlend

对于 <feBlend>in2 定义了混合操作的第二个输入图像。

SourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference>
默认值 第一个滤镜图元的 SourceGraphic,否则是上一个滤镜图元的结果
可动画的

feComposite

对于 <feComposite>in2 定义了合成操作的第二个输入图像。

SourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference>
默认值 第一个滤镜图元的 SourceGraphic,否则是上一个滤镜图元的结果
可动画的

feDisplacementMap

对于 <feDisplacementMap>in2 定义了第二个输入图像,该图像用于置换 in 属性中定义的图像的像素。

SourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference>
默认值 第一个滤镜图元的 SourceGraphic,否则是上一个滤镜图元的结果
可动画的

规范

规范
滤镜效果模块第 1 级
# element-attrdef-fedisplacementmap-in2
滤镜效果模块第 1 级
# element-attrdef-fecomposite-in2
滤镜效果模块第 1 级
# element-attrdef-feblend-in2