Språk

LayerRasterizer.AddLayer Method

Definition

Overloads

Name Description
AddLayer(Paint)

Adds a layer above previous layers on Android 7.1 and earlier. On Android 8.0 and later, the base implementation does nothing.

AddLayer(Paint, Single, Single)

Adds a layer above previous layers on Android 7.1 and earlier. On Android 8.0 and later, the base implementation does nothing.

AddLayer(Paint)

Adds a layer above previous layers on Android 7.1 and earlier. On Android 8.0 and later, the base implementation does nothing.

[Android.Runtime.Register("addLayer", "(Landroid/graphics/Paint;)V", "GetAddLayer_Landroid_graphics_Paint_Handler")]
public virtual void AddLayer(Android.Graphics.Paint? paint);
[<Android.Runtime.Register("addLayer", "(Landroid/graphics/Paint;)V", "GetAddLayer_Landroid_graphics_Paint_Handler")>]
abstract member AddLayer : Android.Graphics.Paint -> unit
override this.AddLayer : Android.Graphics.Paint -> unit

Parameters

paint
Paint

The paint whose mask fields are used for the layer on Android 7.1 and earlier. On Android 8.0 and later, the base implementation ignores this argument.

Attributes

Remarks

Java documentation for android.graphics.LayerRasterizer.addLayer(android.graphics.Paint, float, float).

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

AddLayer(Paint, Single, Single)

Adds a layer above previous layers on Android 7.1 and earlier. On Android 8.0 and later, the base implementation does nothing.

[Android.Runtime.Register("addLayer", "(Landroid/graphics/Paint;FF)V", "GetAddLayer_Landroid_graphics_Paint_FFHandler")]
public virtual void AddLayer(Android.Graphics.Paint? paint, float dx, float dy);
[<Android.Runtime.Register("addLayer", "(Landroid/graphics/Paint;FF)V", "GetAddLayer_Landroid_graphics_Paint_FFHandler")>]
abstract member AddLayer : Android.Graphics.Paint * single * single -> unit
override this.AddLayer : Android.Graphics.Paint * single * single -> unit

Parameters

paint
Paint

The paint whose mask fields are used for the layer on Android 7.1 and earlier. On Android 8.0 and later, the base implementation ignores this argument.

dx
Single

The layer's horizontal offset on Android 7.1 and earlier. On Android 8.0 and later, the base implementation ignores this argument.

dy
Single

The layer's vertical offset on Android 7.1 and earlier. On Android 8.0 and later, the base implementation ignores this argument.

Attributes

Remarks

On Android 7.1 and earlier, the layer extracts the fields that affect the mask from the paint without retaining the paint object, so it can be reused. On Android 8.0 and later, the base implementation does nothing.

Java documentation for android.graphics.LayerRasterizer.addLayer(android.graphics.Paint, float, float).

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