Android.Graphics.Canvas.SaveLayer Method
This behaves the same as save(), but in addition it allocates an offscreen bitmap.

Syntax

[Android.Runtime.Register("saveLayer", "(Landroid/graphics/RectF;Landroid/graphics/Paint;I)I", "GetSaveLayer_Landroid_graphics_RectF_Landroid_graphics_Paint_IHandler")]
public virtual int SaveLayer (RectF bounds, Paint paint, [Android.Runtime.GeneratedEnum] SaveFlags saveFlags)

Parameters

bounds
May be null. The maximum size the offscreen bitmap needs to be (in local coordinates)
paint
This is copied, and is applied to the offscreen when restore() is called.
saveFlags
see _SAVE_FLAG constants

Returns

Documentation for this section has not yet been entered.

Remarks

This behaves the same as save(), but in addition it allocates an offscreen bitmap. All drawing calls are directed there, and only when the balancing call to restore() is made is that offscreen transfered to the canvas (or the previous layer). Subsequent calls to translate, scale, rotate, skew, concat or clipRect, clipPath all operate on this copy. When the balancing call to restore() is made, this copy is deleted and the previous matrix/clip state is restored.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1