Compartilhar via


ImageView.ImageAlpha Property

Definition

Returns the alpha that will be applied to the drawable of this ImageView. -or- Sets the alpha value that should be applied to the image.

public virtual int ImageAlpha { [Android.Runtime.Register("getImageAlpha", "()I", "GetGetImageAlphaHandler")] get; [Android.Runtime.Register("setImageAlpha", "(I)V", "GetSetImageAlpha_IHandler")] set; }
[<get: Android.Runtime.Register("getImageAlpha", "()I", "GetGetImageAlphaHandler")>]
[<set: Android.Runtime.Register("setImageAlpha", "(I)V", "GetSetImageAlpha_IHandler")>]
member this.ImageAlpha : int with get, set

Property Value

the alpha value that will be applied to the drawable of this ImageView (between 0 and 255 inclusive, with 0 being transparent and 255 being opaque)

Attributes

Remarks

Property getter documentation:

Returns the alpha that will be applied to the drawable of this ImageView.

Java documentation for android.widget.ImageView.getImageAlpha().

Property setter documentation:

Sets the alpha value that should be applied to the image.

Java documentation for android.widget.ImageView.setImageAlpha(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