AbstractStaticblendBlend two colors by applying source blend over target base. Notes:
The base color.
The blend color.
The opacity in range 0-1.
The composition function.
The composed function.
StaticblendStaticblendStaticblendStaticblendKeep source where blend is transparent.
The composed function.
StaticblendAdd the colors (lighter).
The composed function.
StaticblendStaticblendKeep source where blend is opaque.
The composed function.
StaticblendKeep source where blend is transparent.
The composed function.
StaticblendStaticblendMutually exclusive (non-overlapping areas).
The composed function.
StaticdestPaint dest on top of existing source pixels only.
The base alpha.
The blend alpha.
The coefficients.
StaticdestMask: Keep dest only where source is opaque.
The base alpha.
The blend alpha.
The coefficients.
StaticdestHole: Keep dest where source is transparent
The base alpha.
The blend alpha.
The coefficients.
StaticdestPut source behind dest.
The base alpha.
The blend alpha.
The coefficients.
StaticplusPlus / Additive (Lighter)
The base alpha.
The blend alpha.
The coefficients.
StaticsourcePaint source on top of existing dest pixels only
The base alpha.
The blend alpha.
The coefficients.
StaticsourceMask: Keep source only where dest is opaque.
The base alpha.
The blend alpha.
The coefficients.
StaticsourceHole: Keep source where dest is transparent.
The base alpha.
The blend alpha.
The coefficients.
StaticsourceThe blend color completely covers the base color based on opacity.
The base alpha.
The blend alpha.
The coefficients.
StaticxorMutually exclusive (non-overlapping areas).
The base alpha.
The blend alpha.
The coefficients.
Image Processing blending and compositing. Implementation compliant with Porter-Duff Compositing Operators. Operations are performed in Linear RGB space.