You can use this attribute with the following SVG elements:
-
over
This value indicates that the source graphic defined in the
in
attribute is placed over the destination graphic defined in the
in2
属性。
-
in
This value indicates that the parts of the source graphic defined in the
in
attribute that overlap the destination graphic defined in the
in2
attribute, replace the destination graphic.
-
out
This value indicates that the parts of the source graphic defined in the
in
attribute that fall outside the destination graphic defined in the
in2
attribute, are displayed.
-
atop
This value indicates that the parts of the source graphic defined in the
in
attribute, which overlap the destination graphic defined in the
in2
attribute, replace the destination graphic. The parts of the destination graphic that do not overlap with the source graphic stay untouched.
-
xor
This value indicates that the non-overlapping regions of the source graphic defined in the
in
attribute and the destination graphic defined in the
in2
attribute are combined.
-
lighter
This value indicates that the sum of the source graphic defined in the
in
attribute and the destination graphic defined in the
in2
attribute is displayed.
-
arithmetic
This value indicates that the source graphic defined in the
in
attribute and the destination graphic defined in the
in2
attribute are combined using the following formula:
result = k1*i1*i2 + k2*i1 + k3*i2 + k4
其中:
i1
and
i2
indicate the corresponding pixel channel values of the input image, which map to
in
and
in2
respectively, and
k1
,
k2
,
k3
,and
k4
indicate the values of the attributes with the same name.