CompositePrimitive Class
A primitive that combines two inputs with an operator of Porter and Duff, their sum, or an arithmetic of their components: feComposite of SVG.
public sealed class CompositePrimitive : FilterPrimitiveRemarks
The operators are those of FilterCompositeOperator, on colors multiplied by their alpha. The first input is A (in), the second one B (in2).
- Inheritance
FilterPrimitiveCompositePrimitive
Constructors
| Name | Description |
|---|---|
| CompositePrimitive(FilterCompositeOperator, FilterInput) | Initializes a new instance of the CompositePrimitive class. |
CompositePrimitive(FilterCompositeOperator, FilterInput)
CompositePrimitive.csInitializes a new instance of the CompositePrimitive class.
public CompositePrimitive(FilterCompositeOperator @operator, FilterInput input2)Parameters
operatorFilterCompositeOperator- The operator.
input2FilterInput- The second input:
in2.
Exceptions
ArgumentOutOfRangeExceptionoperatoris not a definedFilterCompositeOperator.
Properties
| Name | Description |
|---|---|
| Input | Gets the first input: in. |
| Input2 | Gets the second input: in2. |
| K1 | Gets the factor of the product of the inputs, for FilterCompositeOperator.Arithmetic. |
| K2 | Gets the factor of the first input, for FilterCompositeOperator.Arithmetic. |
| K3 | Gets the factor of the second input, for FilterCompositeOperator.Arithmetic. |
| K4 | Gets the constant, for FilterCompositeOperator.Arithmetic. |
| Operator | Gets the operator. |
Input2
CompositePrimitive.csGets the factor of the product of the inputs, for FilterCompositeOperator.Arithmetic.
public double K1 { get; init; }Gets the factor of the first input, for FilterCompositeOperator.Arithmetic.
public double K2 { get; init; }Gets the factor of the second input, for FilterCompositeOperator.Arithmetic.
public double K3 { get; init; }Gets the constant, for FilterCompositeOperator.Arithmetic.
public double K4 { get; init; }