Share via


Outline.Alpha Property

Definition

Returns the alpha represented by the Outline. -or- Sets the alpha represented by the Outline - the degree to which the producer is guaranteed to be opaque over the Outline's shape.

public float Alpha { [Android.Runtime.Register("getAlpha", "()F", "")] get; [Android.Runtime.Register("setAlpha", "(F)V", "")] set; }
[<get: Android.Runtime.Register("getAlpha", "()F", "")>]
[<set: Android.Runtime.Register("setAlpha", "(F)V", "")>]
member this.Alpha : single with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the alpha represented by the Outline.

Java documentation for android.graphics.Outline.getAlpha().

Property setter documentation:

Sets the alpha represented by the Outline - the degree to which the producer is guaranteed to be opaque over the Outline's shape.

An alpha value of 0.0f either represents completely transparent content, or content that isn't guaranteed to fill the shape it publishes.

Content producing a fully opaque (alpha = 1.0f) outline is assumed by the drawing system to fully cover content beneath it, meaning content beneath may be optimized away.

Java documentation for android.graphics.Outline.setAlpha(float).

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