Enum Enums.BlendMode
The various Porter-Duff and PDF blend modes. See Composite2(Image, BlendMode, int?, int?, Interpretation?, bool?).
Namespace: NetVips
Assembly: NetVips.dll
Syntax
public enum Enums.BlendMode
Remarks
The Cairo docs have a nice explanation of all the blend modes: https://www.cairographics.org/operators
The non-separable modes are not implemented.
Fields
Name | Description |
---|---|
Add | A bit like adding the two images. |
Atop | This leaves the first object mostly intact, but mixes both objects in the overlapping area. |
Clear | Where the second object is drawn, the first is removed. |
ColourBurn | Darken first by a factor of second. |
ColourDodge | Brighten first by a factor second. |
Darken | The darker of each component. |
Dest | Leaves the first object untouched, the second is discarded completely. |
DestAtop | Like Atop, but swaps the arguments. |
DestIn | Like In, but swaps the arguments. |
DestOut | Like Out, but swaps the arguments. |
DestOver | Like Over, but swaps the arguments. |
Difference | Difference of the two. |
Exclusion | Somewhat like Difference, but lower-contrast. |
HardLight | Multiply or screen, depending on lightness. |
In | The first object is removed completely, the second is only drawn where the first was. |
Lighten | The lighter of each component. |
Multiply | At least as dark as the darker of the two inputs. |
Out | The second is drawn only where the first isn't. |
Over | The image shows what you would expect if you held two semi-transparent slides on top of each other. |
Overlay | Multiplies or screens colors, depending on the lightness. |
Saturate | A bit like the darker of the two. |
Screen | At least as light as the lighter of the inputs. |
SoftLight | Darken or lighten, depending on lightness. |
Source | The second object is drawn as if nothing were below. |
Xor | Something like a difference operator. |