Enumeration Case

# NSCompositingOperationSourceOut

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

## Discussion

The source image is applied using the formula `R = S*(1 - Da)`.

### Compositing Operations

`NSCompositingOperationSourceOver`

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

`NSCompositingOperationSourceIn`

The source image wherever both images are opaque, and transparent elsewhere.

`NSCompositingOperationSourceAtop`

The source image wherever both images are opaque, the destination image wherever it is opaque but the source image is transparent, and transparent elsewhere

`NSCompositingOperationDestinationOver`

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

`NSCompositingOperationDestinationIn`

The destination image wherever both images are opaque, and transparent elsewhere.

`NSCompositingOperationDestinationOut`

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

`NSCompositingOperationDestinationAtop`

The destination image wherever both images are opaque, the source image wherever it is opaque and the destination image is transparent, and transparent elsehwere.

`NSCompositingOperationXOR`

Exclusive OR of the source and destination images.

`NSCompositingOperationPlusDarker`

The sum of the source and destination images, with color values approach 0 as a limit.

`NSCompositingOperationPlusLighter`

The sum of the source and destination images, with color values approach 1 as a limit.

`NSCompositingOperationMultiply`

The source color is multiplied by the destination color.

`NSCompositingOperationScreen`

Multiplies the complement of the destination and source color values, and then complements the result.

`NSCompositingOperationOverlay`

Source colors overlay the destination.

`NSCompositingOperationDarken`

Use the darker of the source and destination colors.

`NSCompositingOperationLighten`

Use the lighter of the source and destination colors.

`NSCompositingOperationColorDodge`

Brightens the destination to reflect the source.

`NSCompositingOperationColorBurn`

Darkens the destination color to reflect the source.

`NSCompositingOperationSoftLight`

Darkens or lightens colors, with the effect of shining a diffused spotlight on the destination.

`NSCompositingOperationHardLight`

Multiplies or screens colors, with the effect of shining a spotlight on the destination.

`NSCompositingOperationDifference`

Subtracts the darker value from the lighter value.

`NSCompositingOperationExclusion`

Subtracts the darker value from the lighter value, except lower in contrast.

`NSCompositingOperationHue`

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

`NSCompositingOperationSaturation`

Uses the saturation value of the source and the hue and luminosity of the destination.

`NSCompositingOperationColor`

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

`NSCompositingOperationLuminosity`

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