Android.Graphics.Drawables.VectorDrawable.Opacity Property
Return the opacity/transparency of this Drawable.

Syntax

[get: Android.Runtime.Register("getOpacity", "()I", "GetGetOpacityHandler")]
public override int Opacity { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Return the opacity/transparency of this Drawable. The returned value is one of the abstract format constants in Android.Graphics.PixelFormat: Android.Graphics.PixelFormat.UNKNOWN, Android.Graphics.PixelFormat.TRANSLUCENT, Android.Graphics.PixelFormat.TRANSPARENT, or Android.Graphics.PixelFormat.OPAQUE.

Generally a Drawable should be as conservative as possible with the value it returns. For example, if it contains multiple child drawables and only shows one of them at a time, if only one of the children is TRANSLUCENT and the others are OPAQUE then TRANSLUCENT should be returned. You can use the method Drawable.ResolveOpacity(int, System.Int32) to perform a standard reduction of two opacities to the appropriate single output.

Note that the returned value does not take into account a custom alpha or color filter that has been applied by the client through the Drawable.SetAlpha(int) or Drawable.SetColorFilter(Android.Graphics.ColorFilter) methods.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0