Composite two sources together with a mixing algorithm.
This filter combines the FilterEffect⇒Input and FilterEffect⇒Mix sources using either one of the Porter-Duff compositing operations, or a colour blending algorithm. The Input has priority and will be placed in the foreground for ordered operations such as ATOP and OVER.
The CompositeFX class consists of the following fields:
Access | Name | Type | Comment | ||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| K1 | DOUBLE | Input value for the arithmetic operation. | |||||||||||||||||||||||||||||||||||||||||||||||
| K2 | DOUBLE | Input value for the arithmetic operation. | |||||||||||||||||||||||||||||||||||||||||||||||
| K3 | DOUBLE | Input value for the arithmetic operation. | |||||||||||||||||||||||||||||||||||||||||||||||
| K4 | DOUBLE | Input value for the arithmetic operation. | |||||||||||||||||||||||||||||||||||||||||||||||
| Operator | INT | The compositing algorithm to use for rendering. | |||||||||||||||||||||||||||||||||||||||||||||||
Setting the Operator will determine the algorithm that is used for compositing. The default is
| |||||||||||||||||||||||||||||||||||||||||||||||||
| XMLDef | STRING | Returns an SVG compliant XML string that describes the filter. | |||||||||||||||||||||||||||||||||||||||||||||||
The following actions are currently supported:
| Draw | Render the effect to the target bitmap. | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
ERR acDraw(*Object, DOUBLE X, DOUBLE Y, DOUBLE Width, DOUBLE Height)
| ||||||||||||
Operators for CompositionFX.
| Name | Description |
|---|---|
| OP::ARITHMETIC | The SVG 'arithmetic' blending algorithm. |
| OP::ATOP | The Porter-Duff 'atop' operator; the mix alpha channel has priority and the input channel does not occlude. |
| OP::BURN | |
| OP::CONTRAST | |
| OP::DARKEN | Use the darker colour components of the mix and input values. |
| OP::DIFFERENCE | Output the difference between the input and mix colours. |
| OP::DODGE | Gives a brighter result than SCREEN by decreasing the contrast between the input and mix colours. |
| OP::EXCLUSION | Produce the difference between the mix and input values around a reference point of mid-grey. |
| OP::HARD_LIGHT | |
| OP::IN | The Porter-Duff 'in' operator; the input alpha channel has priority and the mix channel is secondary. |
| OP::INVERT | |
| OP::INVERT_RGB | |
| OP::LIGHTEN | Use the lighter colour components of the mix and input values. |
| OP::MINUS | The input colour value is subtracted from the mix. |
| OP::MULTIPLY | |
| OP::OUT | The Porter-Duff 'out' operator; the mix alpha channel is inversed with the input channel. |
| OP::OVER | The Porter-Duff 'over' operator, this is the default operation for standard alpha blending. |
| OP::OVERLAY | Combines the multiply and screen blend modes, with the mix determining tonal strength. |
| OP::PLUS | Add the input and mix colour values together. |
| OP::SCREEN | Produces a result brighter than the input. |
| OP::SOFT_LIGHT | |
| OP::XOR | The Porter-Duff 'xor' operator; blend as normal but occlusion occurs when input and mix alpha channels interact. |