public class ComposeShader
extends Shader
java.lang.Object | ||
↳ | android.graphics.Shader | |
↳ | android.graphics.ComposeShader |
着色器的一个子类,它返回两个其他着色器的组合,并由 Xfermode
子类组合。
Public constructors |
|
---|---|
ComposeShader(Shader shaderA, Shader shaderB, Xfermode mode) 创建一个新的组合着色器,给定着色器A,B和一个组合模式。 |
|
ComposeShader(Shader shaderA, Shader shaderB, PorterDuff.Mode mode) 创建一个新的组合着色器,给定着色器A,B和组合PorterDuff模式。 |
Inherited methods |
|
---|---|
From class android.graphics.Shader
|
|
From class java.lang.Object
|
ComposeShader (Shader shaderA, Shader shaderB, Xfermode mode)
创建一个新的组合着色器,给定着色器A,B和一个组合模式。 在应用模式时,将会将着色器A的结果作为其“dst”,并将着色器B的结果作为其“src”。
Parameters | |
---|---|
shaderA |
Shader : The colors from this shader are seen as the "dst" by the mode |
shaderB |
Shader : The colors from this shader are seen as the "src" by the mode |
mode |
Xfermode : The mode that combines the colors from the two shaders. If mode is null, then SRC_OVER is assumed. |
ComposeShader (Shader shaderA, Shader shaderB, PorterDuff.Mode mode)
创建一个新的组合着色器,给定着色器A,B和组合PorterDuff模式。 在应用模式时,将会将着色器A的结果作为其“dst”,并将着色器B的结果作为其“src”。
Parameters | |
---|---|
shaderA |
Shader : The colors from this shader are seen as the "dst" by the mode |
shaderB |
Shader : The colors from this shader are seen as the "src" by the mode |
mode |
PorterDuff.Mode : The PorterDuff mode that combines the colors from the two shaders. |