Global Variable

NSCompositeXOR

Exclusive OR of source and destination images. (R = S*(1 - Da) + D*(1 - Sa))

Declaration

const NSCompositingOperation NSCompositeXOR;

Discussion

Works only with black and white images and is not recommended for color contexts.

See Also

Deprecated Compositing Modes

NSCompositeClear

Transparent. (R = 0)

Deprecated
NSCompositeCopy

Source image. (R = S)

Deprecated
NSCompositeSourceOver

Source image wherever source image is opaque, and destination image elsewhere. (R = S + D*(1 - Sa))

Deprecated
NSCompositeSourceIn

Source image wherever both images are opaque, and transparent elsewhere. (R = S*Da)

Deprecated
NSCompositeSourceOut

Source image wherever source image is opaque but destination image is transparent, and transparent elsewhere. (R = S*(1 - Da))

Deprecated
NSCompositeSourceAtop

Source image wherever both images are opaque, destination image wherever destination image is opaque but source image is transparent, and transparent elsewhere. (R = S*Da + D*(1 - Sa))

Deprecated
NSCompositeDestinationOver

Destination image wherever destination image is opaque, and source image elsewhere. (R = S*(1 - Da) + D)

Deprecated
NSCompositeDestinationIn

Destination image wherever both images are opaque, and transparent elsewhere. (R = D*Sa)

Deprecated
NSCompositeDestinationOut

Destination image wherever destination image is opaque but source image is transparent, and transparent elsewhere. (R = D*(1 - Sa))

Deprecated
NSCompositeDestinationAtop

Destination image wherever both images are opaque, source image wherever source image is opaque but destination image is transparent, and transparent elsewhere. (R = S*(1 - Da) + D*Sa)

Deprecated
NSCompositePlusDarker

Sum of source and destination images, with color values approaching 0 as a limit. (R = MAX(0, (1 - D) + (1 - S)))

Deprecated
NSCompositeHighlight

Source image wherever source image is opaque, and destination image elsewhere.

Deprecated
NSCompositePlusLighter

Sum of source and destination images, with color values approaching 1 as a limit. (R = MIN(1, S + D))

Deprecated
NSCompositingOperationHighlight

The source image wherever it is opaque, and the destination image elsewhere.

Deprecated
NSCompositeHueDeprecated