Share via


RenderNode.SetRenderEffect(RenderEffect) Method

Definition

Configure the android.graphics.RenderEffect to apply to this RenderNode.

[Android.Runtime.Register("setRenderEffect", "(Landroid/graphics/RenderEffect;)Z", "", ApiSince=31)]
public bool SetRenderEffect (Android.Graphics.RenderEffect? renderEffect);
[<Android.Runtime.Register("setRenderEffect", "(Landroid/graphics/RenderEffect;)Z", "", ApiSince=31)>]
member this.SetRenderEffect : Android.Graphics.RenderEffect -> bool

Parameters

renderEffect
RenderEffect

to be applied to the RenderNode. Passing null clears all previously configured RenderEffects

Returns

True if the value changed, false if the new value was the same as the previous value.

Attributes

Remarks

Configure the android.graphics.RenderEffect to apply to this RenderNode. This will apply a visual effect to the end result of the contents of this RenderNode before it is drawn into the destination. For example if RenderEffect#createBlurEffect(float, float, RenderEffect, Shader.TileMode) is provided, the contents will be drawn in a separate layer, then this layer will be blurred when this RenderNode is drawn into the destination.

Java documentation for android.graphics.RenderNode.setRenderEffect(android.graphics.RenderEffect).

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