次の方法で共有


RenderEffect.CreateShaderEffect(Shader) Method

Definition

Create a RenderEffect that renders the contents of the input Shader.

[Android.Runtime.Register("createShaderEffect", "(Landroid/graphics/Shader;)Landroid/graphics/RenderEffect;", "", ApiSince=31)]
public static Android.Graphics.RenderEffect CreateShaderEffect (Android.Graphics.Shader shader);
[<Android.Runtime.Register("createShaderEffect", "(Landroid/graphics/Shader;)Landroid/graphics/RenderEffect;", "", ApiSince=31)>]
static member CreateShaderEffect : Android.Graphics.Shader -> Android.Graphics.RenderEffect

Parameters

shader
Shader

Returns

Attributes

Remarks

Create a RenderEffect that renders the contents of the input Shader. This is useful to create an input for other RenderEffect types such as RenderEffect#createBlurEffect(float, float, RenderEffect, TileMode)RenderEffect#createBlurEffect(float, float, RenderEffect, TileMode) or RenderEffect#createColorFilterEffect(ColorFilter, RenderEffect).

Java documentation for android.graphics.RenderEffect.createShaderEffect(android.graphics.Shader).

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