Compartir a través de


RenderEffect.CreateChainEffect(RenderEffect, RenderEffect) Method

Definition

Create a RenderEffect that composes 'inner' with 'outer', such that the results of 'inner' are treated as the source bitmap passed to 'outer', i.

[Android.Runtime.Register("createChainEffect", "(Landroid/graphics/RenderEffect;Landroid/graphics/RenderEffect;)Landroid/graphics/RenderEffect;", "", ApiSince=31)]
public static Android.Graphics.RenderEffect CreateChainEffect (Android.Graphics.RenderEffect outer, Android.Graphics.RenderEffect inner);
[<Android.Runtime.Register("createChainEffect", "(Landroid/graphics/RenderEffect;Landroid/graphics/RenderEffect;)Landroid/graphics/RenderEffect;", "", ApiSince=31)>]
static member CreateChainEffect : Android.Graphics.RenderEffect * Android.Graphics.RenderEffect -> Android.Graphics.RenderEffect

Parameters

outer
RenderEffect

RenderEffect that consumes the output of as its input

inner
RenderEffect

RenderEffect that is consumed as input by

Returns

Attributes

Remarks

Create a RenderEffect that composes 'inner' with 'outer', such that the results of 'inner' are treated as the source bitmap passed to 'outer', i.e.

{@code
            result = outer(inner(source))
            }

Consumers should favor explicit chaining of RenderEffect instances at creation time rather than using chain effect. Chain effects are useful for situations where the input or output are provided from elsewhere and the input or output RenderEffect need to be changed.

Java documentation for android.graphics.RenderEffect.createChainEffect(android.graphics.RenderEffect, 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