CGBlendMode CGBlendMode Enum

Definition

Blending mode used during composition.

public enum CGBlendMode
type CGBlendMode = 
Inheritance
CGBlendModeCGBlendMode

Fields

Clear Clear 16

Clears the destination and makes it transparent (R=0).

Color Color 14
ColorBurn ColorBurn 7
ColorDodge ColorDodge 6
Copy Copy 17

Copies the source color with alpha to the target (R=S)

Darken Darken 4
DestinationAtop DestinationAtop 24
DestinationIn DestinationIn 22
DestinationOut DestinationOut 23
DestinationOver DestinationOver 21
Difference Difference 10
Exclusion Exclusion 11
HardLight HardLight 9
Hue Hue 12
Lighten Lighten 5
Luminosity Luminosity 15
Multiply Multiply 1
Normal Normal 0
Overlay Overlay 3
PlusDarker PlusDarker 26
PlusLighter PlusLighter 27
Saturation Saturation 13
Screen Screen 2
SoftLight SoftLight 8
SourceAtop SourceAtop 20
SourceIn SourceIn 18
SourceOut SourceOut 19
XOR XOR 25

Remarks

The blend modes are used when composing images, the operations combine the color data with an alpha channel. The operations are called the Porter-Duff blending operations.

For a detailed explanation see the PDF reference manual.

In the explanation below, the following variables are used:

TermDescription
RPremultiplied result color
SSource Color
DDestination Color
SaSource alpha value
DaDestination alpha value

Applies to