Class Enums.BlendMode
The various Porter-Duff and PDF blend modes. See Composite2(Image, String, Nullable<Int32>, Nullable<Int32>, String, Nullable<Boolean>).
Inheritance
Inherited Members
Namespace: NetVips
Assembly: NetVips.dll
Syntax
public static class 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
| Improve this Doc View SourceAdd
A bit like adding the two images.
Declaration
public const string Add = "add"
Field Value
Type | Description |
---|---|
System.String |
Atop
This leaves the first object mostly intact, but mixes both objects in the overlapping area.
Declaration
public const string Atop = "atop"
Field Value
Type | Description |
---|---|
System.String |
Clear
Where the second object is drawn, the first is removed.
Declaration
public const string Clear = "clear"
Field Value
Type | Description |
---|---|
System.String |
ColourBurn
Darken first by a factor of second.
Declaration
public const string ColourBurn = "colour-burn"
Field Value
Type | Description |
---|---|
System.String |
ColourDodge
Brighten first by a factor second.
Declaration
public const string ColourDodge = "colour-dodge"
Field Value
Type | Description |
---|---|
System.String |
Darken
The darker of each component.
Declaration
public const string Darken = "darken"
Field Value
Type | Description |
---|---|
System.String |
Dest
Leaves the first object untouched, the second is discarded completely.
Declaration
public const string Dest = "dest"
Field Value
Type | Description |
---|---|
System.String |
DestAtop
Like Atop, but swaps the arguments.
Declaration
public const string DestAtop = "dest-atop"
Field Value
Type | Description |
---|---|
System.String |
DestIn
Like In, but swaps the arguments.
Declaration
public const string DestIn = "dest-in"
Field Value
Type | Description |
---|---|
System.String |
DestOut
Like Out, but swaps the arguments.
Declaration
public const string DestOut = "dest-out"
Field Value
Type | Description |
---|---|
System.String |
DestOver
Like Over, but swaps the arguments.
Declaration
public const string DestOver = "dest-over"
Field Value
Type | Description |
---|---|
System.String |
Difference
Difference of the two.
Declaration
public const string Difference = "difference"
Field Value
Type | Description |
---|---|
System.String |
Exclusion
Somewhat like Difference, but lower-contrast.
Declaration
public const string Exclusion = "exclusion"
Field Value
Type | Description |
---|---|
System.String |
HardLight
Multiply or screen, depending on lightness.
Declaration
public const string HardLight = "hard-light"
Field Value
Type | Description |
---|---|
System.String |
In
The first object is removed completely, the second is only drawn where the first was.
Declaration
public const string In = "in"
Field Value
Type | Description |
---|---|
System.String |
Lighten
The lighter of each component.
Declaration
public const string Lighten = "lighten"
Field Value
Type | Description |
---|---|
System.String |
Multiply
At least as dark as the darker of the two inputs.
Declaration
public const string Multiply = "multiply"
Field Value
Type | Description |
---|---|
System.String |
Out
The second is drawn only where the first isn't.
Declaration
public const string Out = "out"
Field Value
Type | Description |
---|---|
System.String |
Over
The image shows what you would expect if you held two semi-transparent slides on top of each other.
Declaration
public const string Over = "over"
Field Value
Type | Description |
---|---|
System.String |
Overlay
Multiplies or screens colors, depending on the lightness.
Declaration
public const string Overlay = "overlay"
Field Value
Type | Description |
---|---|
System.String |
Saturate
A bit like the darker of the two.
Declaration
public const string Saturate = "saturate"
Field Value
Type | Description |
---|---|
System.String |
Screen
At least as light as the lighter of the inputs.
Declaration
public const string Screen = "screen"
Field Value
Type | Description |
---|---|
System.String |
SoftLight
Darken or lighten, depending on lightness.
Declaration
public const string SoftLight = "soft-light"
Field Value
Type | Description |
---|---|
System.String |
Source
The second object is drawn as if nothing were below.
Declaration
public const string Source = "source"
Field Value
Type | Description |
---|---|
System.String |
Xor
Something like a difference operator.
Declaration
public const string Xor = "xor"
Field Value
Type | Description |
---|---|
System.String |