Freigeben über


Drawable.ResolveOpacity(Int32, Int32) Method

Definition

Return the appropriate opacity value for two source opacities.

[Android.Runtime.Register("resolveOpacity", "(II)I", "")]
public static int ResolveOpacity (int op1, int op2);
[<Android.Runtime.Register("resolveOpacity", "(II)I", "")>]
static member ResolveOpacity : int * int -> int

Parameters

op1
Int32

One opacity value.

op2
Int32

Another opacity value.

Returns

int The combined opacity value.

Attributes

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 #getOpacity.

Java documentation for android.graphics.drawable.Drawable.resolveOpacity(int, int).

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

See also