SceneCompositePrimitive 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 SceneCompositePrimitive : SceneFilterPrimitive

Remarks

The operators combine the colors multiplied by their alpha. The first input is A (in), the second one B (in2).

Inheritance
SceneFilterPrimitive SceneCompositePrimitive

Constructors

NameDescription
SceneCompositePrimitive(SceneCompositeOperator, SceneFilterInput)Initializes a new instance of the SceneCompositePrimitive class.

SceneCompositePrimitive(SceneCompositeOperator, SceneFilterInput)

SceneCompositePrimitive.cs

Initializes a new instance of the SceneCompositePrimitive class.

public SceneCompositePrimitive(SceneCompositeOperator @operator, SceneFilterInput input2)

Parameters

operator SceneCompositeOperator
The operator.
input2 SceneFilterInput
The second input: in2.

Exceptions

ArgumentOutOfRangeException
operator is not a defined SceneCompositeOperator.

Properties

NameDescription
InputGets the first input: in.
Input2Gets the second input: in2.
K1Gets the factor of the product of the inputs, for SceneCompositeOperator.Arithmetic: k1.
K2Gets the factor of the first input, for SceneCompositeOperator.Arithmetic: k2.
K3Gets the factor of the second input, for SceneCompositeOperator.Arithmetic: k3.
K4Gets the constant, for SceneCompositeOperator.Arithmetic: k4.
OperatorGets the operator.

Gets the first input: in.

public SceneFilterInput Input { get; init; }

Property value

SceneFilterInput

Gets the second input: in2.

public SceneFilterInput Input2 { get; }

Property value

SceneFilterInput

Gets the factor of the product of the inputs, for SceneCompositeOperator.Arithmetic: k1.

public double K1 { get; init; }

Property value

double

Exceptions

ArgumentException
The value is not a finite number.

Gets the factor of the first input, for SceneCompositeOperator.Arithmetic: k2.

public double K2 { get; init; }

Property value

double

Exceptions

ArgumentException
The value is not a finite number.

Gets the factor of the second input, for SceneCompositeOperator.Arithmetic: k3.

public double K3 { get; init; }

Property value

double

Exceptions

ArgumentException
The value is not a finite number.

Gets the constant, for SceneCompositeOperator.Arithmetic: k4.

public double K4 { get; init; }

Property value

double

Exceptions

ArgumentException
The value is not a finite number.

Gets the operator.

public SceneCompositeOperator Operator { get; }