Paint.SetShader(Shader) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.