ComposeShaderpublic class ComposeShader extends Shader A subclass of shader that returns the coposition of two other shaders, combined by
an {@link android.graphics.Xfermode} subclass. |
Constructors Summary |
---|
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".
native_instance = nativeCreate1(shaderA.native_instance, shaderB.native_instance,
(mode != null) ? mode.native_instance : 0);
| 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".
native_instance = nativeCreate2(shaderA.native_instance, shaderB.native_instance,
mode.nativeInt);
|
Methods Summary |
---|
private static native int | nativeCreate1(int native_shaderA, int native_shaderB, int native_mode)
| private static native int | nativeCreate2(int native_shaderA, int native_shaderB, int porterDuffMode)
|
|