Lingua

NSCompositingOperation Enum

Definition

Specifies a Porter-Duff compositing operator, or a Core Image-style blend mode, used to combine a source image with a destination image.

[ObjCRuntime.Native]
public enum NSCompositingOperation
[<ObjCRuntime.Native>]
type NSCompositingOperation = 
Inheritance
NSCompositingOperation
Attributes

Fields

Name Value Description
Clear 0

The result is transparent black; neither the source nor the destination contributes.

Copy 1

The source image replaces the destination image.

SourceOver 2

The source image is composited over the destination image.

SourceIn 3

The part of the source image that lies within the destination image replaces the destination; everything else is discarded.

SourceOut 4

The part of the source image that lies outside the destination image is displayed; everything else is discarded.

SourceAtop 5

The source image is composited over the destination image, but only the part of the source that lies within the destination is displayed.

DestinationOver 6

The destination image is composited over the source image.

DestinationIn 7

The part of the destination image that lies within the source image replaces the destination; everything else is discarded.

DestinationOut 8

The part of the destination image that lies outside the source image is displayed; everything else is discarded.

DestinationAtop 9

The destination image is composited over the source image, but only the part of the destination that lies within the source is displayed.

Xor 10

The parts of the source and destination images that do not overlap are displayed; the overlapping region is discarded.

PlusDarker 11

The source and destination color values are summed and the result approaches 0 (black) as the limit.

Highlight 12

The source image is composited over the destination image using the same behavior as SourceOver.

PlusLighter 13

The source and destination color values are summed and the result approaches 1 (white) as the limit.

Multiply 14

The source and destination color values are multiplied together, always producing a darker or equal color.

Screen 15

The source and destination color values are inverted, multiplied, and inverted again, always producing a lighter or equal color.

Overlay 16

Multiplies or screens the color values, depending on the destination color, preserving highlights and shadows.

Darken 17

The darker of the source and destination color values is used at each pixel.

Lighten 18

The lighter of the source and destination color values is used at each pixel.

ColorDodge 19

The destination color is brightened to reflect the source color, increasing the contrast between the two.

ColorBurn 20

The destination color is darkened to reflect the source color, increasing the contrast between the two.

SoftLight 21

Darkens or lightens the colors, depending on the source color value, producing an effect similar to shining a diffuse spotlight on the destination.

HardLight 22

Multiplies or screens the color values, depending on the source color, producing an effect similar to shining a harsh spotlight on the destination.

Difference 23

Subtracts either the source color from the destination color or vice versa, whichever produces a positive value, producing an inversion effect.

Exclusion 24

Produces an effect similar to Difference but with lower contrast.

Hue 25

Uses the luminance and saturation of the destination and the hue of the source.

Saturation 26

Uses the luminance and hue of the destination and the saturation of the source.

Color 27

Uses the luminance of the destination and the hue and saturation of the source.

Luminosity 28

Uses the hue and saturation of the destination and the luminance of the source.

Applies to