CGBlendMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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:
Term | Description |
---|---|
R | Premultiplied result color |
S | Source Color |
D | Destination Color |
Sa | Source alpha value |
Da | Destination alpha value |