<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSCompositingOperation/sourceAtop",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSCompositingOperation@NSCompositingOperationSourceAtop"
  },
  "title" : "NSCompositingOperation.sourceAtop"
}
-->

# NSCompositingOperation.sourceAtop

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

```
case sourceAtop
```

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)