Udostępnij za pośrednictwem


ComposeShader Constructors

Definition

Overloads

ComposeShader(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

ComposeShader(Shader, Shader, BlendMode)

Create a new compose shader, given shaders A, B, and a combining PorterDuff mode.

ComposeShader(Shader, Shader, PorterDuff+Mode)

Create a new compose shader, given shaders A, B, and a combining PorterDuff mode.

ComposeShader(Shader, Shader, Xfermode)

Create a new compose shader, given shaders A, B, and a combining mode.

ComposeShader(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected ComposeShader (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.ComposeShader : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.ComposeShader

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ComposeShader(Shader, Shader, BlendMode)

Create a new compose shader, given shaders A, B, and a combining PorterDuff mode.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Shader;Landroid/graphics/Shader;Landroid/graphics/BlendMode;)V", "", ApiSince=29)]
public ComposeShader (Android.Graphics.Shader shaderA, Android.Graphics.Shader shaderB, Android.Graphics.BlendMode blendMode);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Shader;Landroid/graphics/Shader;Landroid/graphics/BlendMode;)V", "", ApiSince=29)>]
new Android.Graphics.ComposeShader : Android.Graphics.Shader * Android.Graphics.Shader * Android.Graphics.BlendMode -> Android.Graphics.ComposeShader

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

blendMode
BlendMode

The blend mode that combines the colors from the two shaders.

Attributes

Remarks

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

Java documentation for android.graphics.ComposeShader.ComposeShader(android.graphics.Shader, android.graphics.Shader, android.graphics.BlendMode).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ComposeShader(Shader, Shader, PorterDuff+Mode)

Create a new compose shader, given shaders A, B, and a combining PorterDuff mode.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Shader;Landroid/graphics/Shader;Landroid/graphics/PorterDuff$Mode;)V", "")]
public ComposeShader (Android.Graphics.Shader shaderA, Android.Graphics.Shader shaderB, Android.Graphics.PorterDuff.Mode mode);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Shader;Landroid/graphics/Shader;Landroid/graphics/PorterDuff$Mode;)V", "")>]
new Android.Graphics.ComposeShader : Android.Graphics.Shader * Android.Graphics.Shader * Android.Graphics.PorterDuff.Mode -> Android.Graphics.ComposeShader

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

Attributes

Remarks

Java documentation for android.graphics.ComposeShader.ComposeShader(android.graphics.Shader, android.graphics.Shader, android.graphics.BlendMode).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ComposeShader(Shader, Shader, Xfermode)

Create a new compose shader, given shaders A, B, and a combining mode.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Shader;Landroid/graphics/Shader;Landroid/graphics/Xfermode;)V", "")]
public ComposeShader (Android.Graphics.Shader shaderA, Android.Graphics.Shader shaderB, Android.Graphics.Xfermode mode);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Shader;Landroid/graphics/Shader;Landroid/graphics/Xfermode;)V", "")>]
new Android.Graphics.ComposeShader : Android.Graphics.Shader * Android.Graphics.Shader * Android.Graphics.Xfermode -> Android.Graphics.ComposeShader

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.

Attributes

Remarks

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

Java documentation for android.graphics.ComposeShader.ComposeShader(android.graphics.Shader, android.graphics.Shader, android.graphics.Xfermode).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to