CompositeOperation

How to composite against background (background is always considered opaque in dplug:canvas).

Values

ValueMeaning
sourceOver

(default) Fastest mode, blend source over the background. Note that this goes considerable faster than other blend modes. This is because this mode skips holes instead of compositing it, And traverse pixels only once.

add

Add source color (weighted by alpha) to background.

lighteradd

ditto

subtract

Subtract source color (weighted by alpha) from background.

lighten

Choose maximum of color values. Do not mistake for "lighter" which is an add, not a max.

darken

Choose minimum of color values.

Meta