Enum CompositeMode
- All Implemented Interfaces:
Serializable
,Comparable<CompositeMode>
,java.lang.constant.Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe arithmetic operation is useful for combining the output from the feDiffuseLighting and feSpecularLighting filters with texture data.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 source graphic defined by the in attribute that overlap the destination graphic defined in the in2 attribute, replace the destination graphic.The sum of the source graphic defined in the in attribute and the destination graphic defined in the in2 attribute is displayed.The parts of the source graphic defined by the in attribute that fall outside the destination graphic defined in the in2 attribute, are displayed.The source graphic defined by the in attribute (the MDN logo) is placed over the destination graphic defined by the in2 attribute (the circle).The non-overlapping regions of the source graphic defined in the in attribute and the destination graphic defined in the in2 attribute are combined. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompositeMode
Returns the enum constant of this type with the specified name.static CompositeMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Over
The source graphic defined by the in attribute (the MDN logo) is placed over the destination graphic defined by the in2 attribute (the circle). This is the default operation, which will be used if no operation or an unsupported operation is specified. -
In
The parts of the source graphic defined by the in attribute that overlap the destination graphic defined in the in2 attribute, replace the destination graphic. -
Out
The parts of the source graphic defined by the in attribute that fall outside the destination graphic defined in the in2 attribute, are displayed. -
Atop
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
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
The sum of the source graphic defined in the in attribute and the destination graphic defined in the in2 attribute is displayed. -
Arithmetic
The arithmetic operation is useful for combining the output from the feDiffuseLighting and feSpecularLighting filters with texture data. If the arithmetic operation is chosen, each result pixel is computed using the following formula:result = k1*i1*i2 + k2*i1 + k3*i2 + k4
where:
- i1 and i2 indicate the corresponding pixel channel values of the input image, which map to in and in2 respectively
- k1, k2, k3, and k4 indicate the values of the attributes with the same name.
-
-
Constructor Details
-
CompositeMode
private CompositeMode()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-