Gjsify LogoGjsify Logo

The various Porter-Duff and PDF blend modes. See vips_composite(), for example.

The Cairo docs have a nice explanation of all the blend modes:

https://www.cairographics.org/operators

The non-separable modes are not implemented.

Index

Enumeration Members

ADD: number

a bit like adding the two images

ATOP: number

this leaves the first object mostly intact, but mixes both objects in the overlapping area

CLEAR: number

where the second object is drawn, the first is removed

COLOUR_BURN: number

darken first by a factor of second

COLOUR_DODGE: number

brighten first by a factor second

DARKEN: number

the darker of each component

DEST: number

leaves the first object untouched, the second is discarded completely

DEST_ATOP: number

like ATOP, but swaps the arguments

DEST_IN: number

like IN, but swaps the arguments

DEST_OUT: number

like OUT, but swaps the arguments

DEST_OVER: number

like OVER, but swaps the arguments

DIFFERENCE: number

difference of the two

EXCLUSION: number

somewhat like DIFFERENCE, but lower-contrast

HARD_LIGHT: number

multiply or screen, depending on lightness

IN: number

the first object is removed completely, the second is only drawn where the first was

LAST: number
LIGHTEN: number

the lighter of each component

MULTIPLY: number

at least as dark as the darker of the two inputs

OUT: number

the second is drawn only where the first isn't

OVER: number

the image shows what you would expect if you held two semi-transparent slides on top of each other

OVERLAY: number

multiplies or screens colors, depending on the lightness

SATURATE: number

a bit like the darker of the two

SCREEN: number

at least as light as the lighter of the inputs

SOFT_LIGHT: number

darken or lighten, depending on lightness

SOURCE: number

the second object is drawn as if nothing were below

XOR: number

something like a difference operator

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method