Android Guides | Samples

Android.Graphics.Drawables.Drawable.ResolveOpacity Method

Return the appropriate opacity value for two source opacities.

Syntax

[Android.Runtime.Register("resolveOpacity", "(II)I", "")]
public static Int32 ResolveOpacity (Int32 op1, Int32 op2)

See Also

Parameters

op1
One opacity value.
op2
Another opacity value.

Remarks

Return the appropriate opacity value for two source opacities. If either is UNKNOWN, that is returned; else, if either is TRANSLUCENT, that is returned; else, if either is TRANSPARENT, that is returned; else, OPAQUE is returned.

This is to help in implementing Drawable.Opacity.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1