Language

BlendMode.Difference Property

Definition

Subtracts darker from lighter with higher contrast.

[Android.Runtime.Register("DIFFERENCE", ApiSince=29)]
public static Android.Graphics.BlendMode? Difference { get; }
[<Android.Runtime.Register("DIFFERENCE", ApiSince=29)>]
static member Difference : Android.Graphics.BlendMode

Property Value

Attributes

Remarks

Subtracts darker from lighter with higher contrast.

\begin{equation} \alpha_{out} = \alpha_{src} + \alpha_{dst} - \alpha_{src} * \alpha_{dst} \end{equation}

\begin{equation} C_{out} = C_{src} + C_{dst} - 2 * min(C_{src} * \alpha_{dst}, C_{dst} * \alpha_{src}) \end{equation}

Android reference for android.graphics.BlendMode.DIFFERENCE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to