destinationAtop
A mode that you use to paint the source image under the background, while erasing any of the background not matched by opaque pixels from the source image.
Declaration
static var destinationAtop: GraphicsContext.BlendMode { get }Discussion
This mode implements the equation R = S*(1 - Da) + D*Sa where
Ris the composite image.Sis the source image.Dis the background.Sais the source image’s alpha value.Dais the source background’s alpha value.