iOS Guides | Samples

CoreGraphics.CGBlendMode Enumeration

Blending mode used during composition.

Syntax

public enum CGBlendMode

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

Members

Member NameDescription
ClearClears the destination and makes it transparent (R=0).
Color
ColorBurn
ColorDodge
CopyCopies the source color with alpha to the target (R=S)
Darken
DestinationAtop
DestinationIn
DestinationOut
DestinationOver
Difference
Exclusion
HardLight
Hue
Lighten
Luminosity
Multiply
Normal
Overlay
PlusDarker
PlusLighter
Saturation
Screen
SoftLight
SourceAtop
SourceIn
SourceOut
XOR

Requirements

Namespace: CoreGraphics
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of CoreGraphics.CGBlendMode are listed below.

See Also: Enum

Public Fields