Type Property 型プロパティ

sourceAtop

A mode that you use to paint the opaque parts of the source image onto the opaque parts of the background.

Declaration 宣言

static var sourceAtop: GraphicsContext.BlendMode { get }

Discussion 議論

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

  • R is the composite image.

  • S is the source image.

  • D is the background.

  • Sa is the source image’s alpha value.

  • Da is the source background’s alpha value.

See Also 参照

Accessing Porter-Duff Modes