Show / Hide Table of Contents

Class Enums.BlendMode

The various Porter-Duff and PDF blend modes. See Composite2(Image, String, Nullable<Int32>, Nullable<Int32>, String, Nullable<Boolean>).

Inheritance
System.Object
Enums.BlendMode
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 Source

Add

A bit like adding the two images.

Declaration
public const string Add = "add"
Field Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

Clear

Where the second object is drawn, the first is removed.

Declaration
public const string Clear = "clear"
Field Value
Type Description
System.String
| Improve this Doc View Source

ColourBurn

Darken first by a factor of second.

Declaration
public const string ColourBurn = "colour-burn"
Field Value
Type Description
System.String
| Improve this Doc View Source

ColourDodge

Brighten first by a factor second.

Declaration
public const string ColourDodge = "colour-dodge"
Field Value
Type Description
System.String
| Improve this Doc View Source

Darken

The darker of each component.

Declaration
public const string Darken = "darken"
Field Value
Type Description
System.String
| Improve this Doc View Source

Dest

Leaves the first object untouched, the second is discarded completely.

Declaration
public const string Dest = "dest"
Field Value
Type Description
System.String
| Improve this Doc View Source

DestAtop

Like Atop, but swaps the arguments.

Declaration
public const string DestAtop = "dest-atop"
Field Value
Type Description
System.String
| Improve this Doc View Source

DestIn

Like In, but swaps the arguments.

Declaration
public const string DestIn = "dest-in"
Field Value
Type Description
System.String
| Improve this Doc View Source

DestOut

Like Out, but swaps the arguments.

Declaration
public const string DestOut = "dest-out"
Field Value
Type Description
System.String
| Improve this Doc View Source

DestOver

Like Over, but swaps the arguments.

Declaration
public const string DestOver = "dest-over"
Field Value
Type Description
System.String
| Improve this Doc View Source

Difference

Difference of the two.

Declaration
public const string Difference = "difference"
Field Value
Type Description
System.String
| Improve this Doc View Source

Exclusion

Somewhat like Difference, but lower-contrast.

Declaration
public const string Exclusion = "exclusion"
Field Value
Type Description
System.String
| Improve this Doc View Source

HardLight

Multiply or screen, depending on lightness.

Declaration
public const string HardLight = "hard-light"
Field Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

Lighten

The lighter of each component.

Declaration
public const string Lighten = "lighten"
Field Value
Type Description
System.String
| Improve this Doc View Source

Multiply

At least as dark as the darker of the two inputs.

Declaration
public const string Multiply = "multiply"
Field Value
Type Description
System.String
| Improve this Doc View Source

Out

The second is drawn only where the first isn't.

Declaration
public const string Out = "out"
Field Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

Overlay

Multiplies or screens colors, depending on the lightness.

Declaration
public const string Overlay = "overlay"
Field Value
Type Description
System.String
| Improve this Doc View Source

Saturate

A bit like the darker of the two.

Declaration
public const string Saturate = "saturate"
Field Value
Type Description
System.String
| Improve this Doc View Source

Screen

At least as light as the lighter of the inputs.

Declaration
public const string Screen = "screen"
Field Value
Type Description
System.String
| Improve this Doc View Source

SoftLight

Darken or lighten, depending on lightness.

Declaration
public const string SoftLight = "soft-light"
Field Value
Type Description
System.String
| Improve this Doc View Source

Source

The second object is drawn as if nothing were below.

Declaration
public const string Source = "source"
Field Value
Type Description
System.String
| Improve this Doc View Source

Xor

Something like a difference operator.

Declaration
public const string Xor = "xor"
Field Value
Type Description
System.String
  • Improve this Doc
  • View Source
Back to top Generated by DocFX