Android Guides | Samples

Android.Graphics.Shader Class

Shader is the based class for objects that return horizontal spans of colors during drawing.

See Also: Shader

Syntax

[Android.Runtime.Register("android/graphics/Shader", DoNotGenerateAcw=true)]
public class Shader : Object

Remarks

Shader is the based class for objects that return horizontal spans of colors during drawing. A subclass of Shader is installed in a Paint calling paint.setShader(shader). After that any object (other than a bitmap) that is drawn with that paint will get its color(s) from the shader.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Graphics.Shader are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GetLocalMatrix(Matrix) : Boolean
Return true if the shader has a non-identity local matrix.
SetLocalMatrix(Matrix)
Set the shader's local matrix.