| java.lang.Object | ||
| ↳ | android.graphics.Shader | |
| ↳ | android.graphics.ComposeShader | |
A subclass of shader that returns the composition of two other shaders, combined by
an
Xfermode
subclass.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Create a new compose shader, given shaders A, B, and a combining mode.
|
||||||||||
|
|
Create a new compose shader, given shaders A, B, and a combining PorterDuff mode.
|
||||||||||
|
[Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
android.graphics.Shader
|
|||||||||||
From class
java.lang.Object
|
|||||||||||
Create a new compose shader, given shaders A, B, and a combining mode. When the mode is applied, it will be given the result from shader A as its "dst", and the result from shader B as its "src".
| shaderA | The colors from this shader are seen as the "dst" by the mode |
|---|---|
| shaderB | The colors from this shader are seen as the "src" by the mode |
| mode | The mode that combines the colors from the two shaders. If mode is null, then SRC_OVER is assumed. |
Create a new compose shader, given shaders A, B, and a combining PorterDuff mode. When the mode is applied, it will be given the result from shader A as its "dst", and the result from shader B as its "src".
| shaderA | The colors from this shader are seen as the "dst" by the mode |
|---|---|
| shaderB | The colors from this shader are seen as the "src" by the mode |
| mode | The PorterDuff mode that combines the colors from the two shaders. |