Type Property 型プロパティ

xor

A mode that you use to clear pixels where both the source and background images are opaque.

Declaration 宣言

static var xor: GraphicsContext.BlendMode { get }

Discussion 議論

This mode implements the equation R = S*(1 - 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.

This XOR mode is only nominally related to the classical bitmap XOR operation, which SwiftUI doesn’t support.

See Also 参照

Accessing Porter-Duff Modes