Compartir a través de


Paint.SetShader(Shader) Method

Definition

Set or clear the shader object.

[Android.Runtime.Register("setShader", "(Landroid/graphics/Shader;)Landroid/graphics/Shader;", "GetSetShader_Landroid_graphics_Shader_Handler")]
public virtual Android.Graphics.Shader? SetShader (Android.Graphics.Shader? shader);
[<Android.Runtime.Register("setShader", "(Landroid/graphics/Shader;)Landroid/graphics/Shader;", "GetSetShader_Landroid_graphics_Shader_Handler")>]
abstract member SetShader : Android.Graphics.Shader -> Android.Graphics.Shader
override this.SetShader : Android.Graphics.Shader -> Android.Graphics.Shader

Parameters

shader
Shader

May be null. the new shader to be installed in the paint

Returns

shader

Attributes

Remarks

Set or clear the shader object. <p /> Pass null to clear any previous shader. As a convenience, the parameter passed is also returned.

Java documentation for android.graphics.Paint.setShader(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