Build 1.0_r1(from source)

android.graphics
Class ComposeShader

java.lang.Object
  extended by android.graphics.Shader
      extended by android.graphics.ComposeShader

public class ComposeShader
extends Shader

A subclass of shader that returns the coposition of two other shaders, combined by an Xfermode subclass.


Nested Class Summary
 
Nested classes/interfaces inherited from class android.graphics.Shader
Shader.TileMode
 
Field Summary
 
Fields inherited from class android.graphics.Shader
native_instance
 
Constructor Summary
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, Xfermode mode)
          Create a new compose shader, given shaders A, B, and a combining mode.
 
Method Summary
 
Methods inherited from class android.graphics.Shader
finalize, getLocalMatrix, setLocalMatrix
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 of from shader B as its "src".

Parameters:
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.

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 of from shader B as its "src".

Parameters:
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.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature