Szerkesztés

Megosztás a következőn keresztül:


CGBlendMode Enum

Definition

Blending mode used during composition.

public enum CGBlendMode
type CGBlendMode = 
Inheritance
CGBlendMode

Fields

Name Value Description
Normal 0
Multiply 1
Screen 2
Overlay 3
Darken 4
Lighten 5
ColorDodge 6
ColorBurn 7
SoftLight 8
HardLight 9
Difference 10
Exclusion 11
Hue 12
Saturation 13
Color 14
Luminosity 15
Clear 16

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

Copy 17

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

SourceIn 18
SourceOut 19
SourceAtop 20
DestinationOver 21
DestinationIn 22
DestinationOut 23
DestinationAtop 24
XOR 25
PlusDarker 26
PlusLighter 27

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