These constants specify compositing operators described in terms of having source and destination images, each having an opaque and transparent region. The destination image after the operation is defined in terms of the source and destination before images.
Available in Mac OS X v10.0 and later.
C# | Visual Basic | Visual C++ |
public enum NSCompositingOperation
Public Enumeration NSCompositingOperation
public enum class NSCompositingOperation
Member | Description |
---|---|
NSCompositeClear | Transparent. (R = 0) Available in Mac OS X v10.0 and later. |
NSCompositeCopy | Source image. (R = S) Available in Mac OS X v10.0 and later. |
NSCompositeSourceOver | Source image wherever source image is opaque, and destination image elsewhere. (R = S + D*(1 - Sa)) Available in Mac OS X v10.0 and later. |
NSCompositeSourceIn | Source image wherever both images are opaque, and transparent elsewhere. (R = S*Da) Available in Mac OS X v10.0 and later. |
NSCompositeSourceOut | Source image wherever source image is opaque but destination image is transparent, and transparent elsewhere. (R = S*(1 - Da)) Available in Mac OS X v10.0 and later. |
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)) Available in Mac OS X v10.0 and later. |
NSCompositeDestinationOver | Destination image wherever destination image is opaque, and source image elsewhere. (R = S*(1 - Da) + D) Available in Mac OS X v10.0 and later. |
NSCompositeDestinationIn | Destination image wherever both images are opaque, and transparent elsewhere. (R = D*Sa) Available in Mac OS X v10.0 and later. |
NSCompositeDestinationOut | Destination image wherever destination image is opaque but source image is transparent, and transparent elsewhere. (R = D*(1 - Sa)) Available in Mac OS X v10.0 and later. |
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) Available in Mac OS X v10.0 and later. |
NSCompositeXOR | Exclusive OR of source and destination images. (R = S*(1 - Da) + D*(1 - Sa)) Works only with black and white images and is not recommended for color contexts. Available in Mac OS X v10.0 and later. |
NSCompositePlusDarker | Sum of source and destination images, with color values approaching 0 as a limit. (R = MAX(0, (1 - D) + (1 - S))) Available in Mac OS X v10.0 and later. |
NSCompositeHighlight | Source image wherever source image is opaque, and destination image elsewhere. (Deprecated. Mapped to NSCompositeSourceOver.) Available in Mac OS X v10.0 and later. |
NSCompositePlusLighter | Sum of source and destination images, with color values approaching 1 as a limit. (R = MIN(1, S + D)) Available in Mac OS X v10.0 and later. |
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)