Partager via


Paint.SetXfermode(Xfermode) Method

Definition

Set or clear the transfer mode object.

[Android.Runtime.Register("setXfermode", "(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;", "GetSetXfermode_Landroid_graphics_Xfermode_Handler")]
public virtual Android.Graphics.Xfermode? SetXfermode (Android.Graphics.Xfermode? xfermode);
[<Android.Runtime.Register("setXfermode", "(Landroid/graphics/Xfermode;)Landroid/graphics/Xfermode;", "GetSetXfermode_Landroid_graphics_Xfermode_Handler")>]
abstract member SetXfermode : Android.Graphics.Xfermode -> Android.Graphics.Xfermode
override this.SetXfermode : Android.Graphics.Xfermode -> Android.Graphics.Xfermode

Parameters

xfermode
Xfermode

May be null. The xfermode to be installed in the paint

Returns

xfermode

Attributes

Remarks

Set or clear the transfer mode object. A transfer mode defines how source pixels (generate by a drawing command) are composited with the destination pixels (content of the render target). <p /> Pass null to clear any previous transfer mode. As a convenience, the parameter passed is also returned. <p /> PorterDuffXfermode is the most common transfer mode.

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