Freigeben über


HardwareRenderer.Opaque Property

Definition

Whether or not the renderer is set to be opaque. -or- Change the HardwareRenderer's opacity.

public virtual bool Opaque { [Android.Runtime.Register("isOpaque", "()Z", "GetIsOpaqueHandler", ApiSince=29)] get; [Android.Runtime.Register("setOpaque", "(Z)V", "GetSetOpaque_ZHandler", ApiSince=29)] set; }
[<get: Android.Runtime.Register("isOpaque", "()Z", "GetIsOpaqueHandler", ApiSince=29)>]
[<set: Android.Runtime.Register("setOpaque", "(Z)V", "GetSetOpaque_ZHandler", ApiSince=29)>]
member this.Opaque : bool with get, set

Property Value

true if the renderer is opaque, false otherwise

Attributes

Remarks

Property getter documentation:

Whether or not the renderer is set to be opaque. See #setOpaque(boolean)

Java documentation for android.graphics.HardwareRenderer.isOpaque().

Property setter documentation:

Change the HardwareRenderer's opacity. Will take effect on the next frame produced.

If the renderer is set to opaque it is the app's responsibility to ensure that the content renders to every pixel of the Surface, otherwise corruption may result. Note that this includes ensuring that the first draw of any given pixel does not attempt to blend against the destination. If this is false then the hardware renderer will clear to transparent at the start of every frame.

Java documentation for android.graphics.HardwareRenderer.setOpaque(boolean).

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