# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Ctors | Inherited Methods

# ComposeShader

`public class ComposeShader`
`` `extends Shader` ``

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.

## Summary

### Public constructors
`ComposeShader(Shader shaderA, Shader shaderB, Xfermode mode)` Create a new compose shader, given shaders A, B, and a combining mode.
`ComposeShader(Shader shaderA, Shader shaderB, PorterDuff.Mode mode)` Create a new compose shader, given shaders A, B, and a combining PorterDuff mode.
`ComposeShader(Shader shaderA, Shader shaderB, BlendMode blendMode)` Create a new compose shader, given shaders A, B, and a combining PorterDuff mode.

### Inherited methods
From class `android.graphics.Shader`
`boolean` | `getLocalMatrix(Matrix localM)` Return true if the shader has a non-identity local matrix.
`void` | `setLocalMatrix(Matrix localM)` Set the shader's local matrix.
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public constructors

### ComposeShader

    public ComposeShader (Shader shaderA,
                    Shader shaderB,
                    Xfermode mode)

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".

Parameters
`shaderA` | `Shader`: The colors from this shader are seen as the "dst" by the mode This value cannot be `null`.
`shaderB` | `Shader`: The colors from this shader are seen as the "src" by the mode This value cannot be `null`.
`mode` | `Xfermode`: The mode that combines the colors from the two shaders. If mode is null, then SRC_OVER is assumed. This value cannot be `null`.

### ComposeShader

    public ComposeShader (Shader shaderA,
                    Shader shaderB,
                    PorterDuff.Mode mode)

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".

Parameters
`shaderA` | `Shader`: The colors from this shader are seen as the "dst" by the mode This value cannot be `null`.
`shaderB` | `Shader`: The colors from this shader are seen as the "src" by the mode This value cannot be `null`.
`mode` | `PorterDuff.Mode`: The PorterDuff mode that combines the colors from the two shaders. This value cannot be `null`.

### ComposeShader

    public ComposeShader (Shader shaderA,
                    Shader shaderB,
                    BlendMode blendMode)

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".

Parameters
`shaderA` | `Shader`: The colors from this shader are seen as the "dst" by the mode This value cannot be `null`.
`shaderB` | `Shader`: The colors from this shader are seen as the "src" by the mode This value cannot be `null`.
`blendMode` | `BlendMode`: The blend mode that combines the colors from the two shaders. This value cannot be `null`.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*