Contents

destinationOver

A mode that you use to paint the source image under the background.

Declaration

static var destinationOver: GraphicsContext.BlendMode { get }

Discussion

This mode implements the equation R = S*(1 - Da) + D where

  • R is the composite image.

  • S is the source image.

  • D is the background.

  • Da is the source background’s alpha value.

See Also

Accessing Porter-Duff modes