BlendPrimitive Class
A primitive that draws its first input over its second one with a blend mode: feBlend of SVG.
public sealed class BlendPrimitive : FilterPrimitiveRemarks
The first input is the source (in) and the second one the backdrop (in2), as in "Compositing and Blending Level 1": with colors cs and cb multiplied by their alpha as and ab, and the blend B of the straight colors (BlendMode), the result is cs (1 - ab) + cb (1 - as) + as ab B, of alpha as + ab - as ab.
- Inheritance
FilterPrimitiveBlendPrimitive
Constructors
| Name | Description |
|---|---|
| BlendPrimitive(BlendMode, FilterInput) | Initializes a new instance of the BlendPrimitive class. |
BlendPrimitive(BlendMode, FilterInput)
BlendPrimitive.csInitializes a new instance of the BlendPrimitive class.
public BlendPrimitive(BlendMode mode, FilterInput input2)Parameters
modeBlendMode- The blend mode.
input2FilterInput- The backdrop:
in2.
Exceptions
ArgumentOutOfRangeExceptionmodeis not a definedBlendMode.
Properties
| Name | Description |
|---|---|
| Input | Gets the source: in. |
| Input2 | Gets the backdrop: in2. |
| Mode | Gets the blend mode. |