Defines the way a foreground image will be combined with background video.
More...
Defines the way a foreground image will be combined with background video.
◆ Enum
Enumerator |
---|
Over | Foreground over Background - in effect, normal painting operation.
Rrgb = (Fa * Frgb) + (1 - Fa ) * (Ba * Brgb)
Normally, alpha blending implies a background alpha of 1.0 (Ba = 1.0), so the compositing result Rrgb becomes:
Rrgb = (Fa * Frgb) + (1 - Fa) * Brgb
Fa and Ba are alpha density value with range from 0.0 to 1.0
|
In | Foreground in Background - the alpha compositing equivalent of clipping / itersection.
Rrgb = (Fa * Frgb) * Ba
Fa and Ba are alpha density value with range from 0.0 to 1.0
|
Out | Foreground outside Background.
Rrgb = (Fa * Frgb) * (1 - Ba)
Fa and Ba are alpha density value with range from 0.0 to 1.0
|
Atop | Foreground atop Background.
Rrgb = (Fa * Frgb) * Ba + (1 - Fa) * (Ba * Brgb)
Fa and Ba are alpha density value with range from 0.0 to 1.0
|
Xor | Foreground xor Background.
Rrgb = (Fa * Frgb) * (1 - Ba) + (1 - Fa) * (Ba * Brgb)
Fa and Ba are alpha density value with range from 0.0 to 1.0
|
Plus | Foreground plus Background.
Rrgb = (Fa * Frgb) + (Ba * Brgb)
Fa and Ba are alpha density value with range from 0.0 to 1.0
|