Table of Contents

Enum CompositeMode

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

Specifies a compositing mode. See D2D1_COMPOSITE_MODE and Direct2D Composite effect for more info.

public enum CompositeMode

Fields

SourceOver = 0

The standard source-over-destination blend mode.

O = S + (1 - SA) * D

DestinationOver = 1

The destination is rendered over the source.

O = (1 - DA) * S + D

SourceIn = 2

Performs a logical clip of the source pixels against the destination pixels.

O = DA * S

DestinationIn = 3

The inverse of the SourceIn operation.

O = SA * D

SourceOut = 4

The logical inverse of the SourceIn operation.

O = (1 - DA) * S

DestinationOut = 5

The logical inverse to the DestinationIn operation.

O = (1 - SA) * D

SourceAtop = 6

Writes the source pixels over the destination where there are destination pixels.

O = DA * S + (1 - SA) * D

DestinationAtop = 7

The logical inverse of the SourceAtop operation.

O = (1 - DA) * S + SA * D

Xor = 8

The source is inverted with the destination.

O = (1 - DA) * S + (1 - SA) * D

Plus = 9

The channel components are summed.

O = S + D

SourceCopy = 10

The source is copied to the destination; the destination pixels are ignored.

O = S

BoundedSourceCopy = 11

Equivalent to SourceCopy, but pixels outside of the source bounds are unchanged.

O = S (only where source exists)

MaskInvert = 12

Destination colors are inverted according to a source mask.

O = (1 - DA) * S + (1 - SA) * D