LayerRasterizer.AddLayer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| AddLayer(Paint) |
Add a new layer (above any previous layers) to the rasterizer. |
| AddLayer(Paint, Single, Single) |
Add a new layer (above any previous layers) to the rasterizer. |
AddLayer(Paint)
Add a new layer (above any previous layers) to the rasterizer.
[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
Retained for compatibility; the Android 16 base implementation does not read this argument.
- Attributes
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
AddLayer(Paint, Single, Single)
Add a new layer (above any previous layers) to the rasterizer.
[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
Retained for compatibility; the Android 16 base implementation does not read this argument.
- dx
- Single
Retained for compatibility; the Android 16 base implementation does not apply this offset.
- dy
- Single
Retained for compatibility; the Android 16 base implementation does not apply this offset.
- Attributes
Remarks
Add a new layer (above any previous layers) to the rasterizer. The layer will extract those fields that affect the mask from the specified paint, but will not retain a reference to the paint object itself, so it may be reused without danger of side-effects.
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.