共用方式為


Paint.BlendMode Property

Definition

Get the paint's blend mode object. -or- Set or clear the blend mode.

public virtual Android.Graphics.BlendMode? BlendMode { [Android.Runtime.Register("getBlendMode", "()Landroid/graphics/BlendMode;", "GetGetBlendModeHandler", ApiSince=29)] get; [Android.Runtime.Register("setBlendMode", "(Landroid/graphics/BlendMode;)V", "GetSetBlendMode_Landroid_graphics_BlendMode_Handler", ApiSince=29)] set; }
[<get: Android.Runtime.Register("getBlendMode", "()Landroid/graphics/BlendMode;", "GetGetBlendModeHandler", ApiSince=29)>]
[<set: Android.Runtime.Register("setBlendMode", "(Landroid/graphics/BlendMode;)V", "GetSetBlendMode_Landroid_graphics_BlendMode_Handler", ApiSince=29)>]
member this.BlendMode : Android.Graphics.BlendMode with get, set

Property Value

the paint's blend mode (or null)

Attributes

Remarks

Property getter documentation:

Get the paint's blend mode object.

Java documentation for android.graphics.Paint.getBlendMode().

Property setter documentation:

Set or clear the blend mode. A blend mode defines how source pixels (generated by a drawing command) are composited with the destination pixels (content of the render target). <p /> Pass null to clear any previous blend mode. <p />

Java documentation for android.graphics.Paint.setBlendMode(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