다음을 통해 공유


Canvas.ClipOutShader(Shader) Method

Definition

Set the clip to the difference of the current clip and the shader.

[Android.Runtime.Register("clipOutShader", "(Landroid/graphics/Shader;)V", "GetClipOutShader_Landroid_graphics_Shader_Handler", ApiSince=35)]
public virtual void ClipOutShader (Android.Graphics.Shader shader);
[<Android.Runtime.Register("clipOutShader", "(Landroid/graphics/Shader;)V", "GetClipOutShader_Landroid_graphics_Shader_Handler", ApiSince=35)>]
abstract member ClipOutShader : Android.Graphics.Shader -> unit
override this.ClipOutShader : Android.Graphics.Shader -> unit

Parameters

shader
Shader

The shader to intersect with the current clip

Attributes

Remarks

Set the clip to the difference of the current clip and the shader. The shader will be treated as an alpha mask, taking the difference of the two.

Java documentation for android.graphics.Canvas.clipOutShader(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