Udostępnij za pośrednictwem


RenderNode.BeginRecording Method

Definition

Overloads

BeginRecording()

Same as #beginRecording(int, int) with the width & height set to the RenderNode's own width & height.

BeginRecording(Int32, Int32)

Starts recording a display list for the render node.

BeginRecording()

Same as #beginRecording(int, int) with the width & height set to the RenderNode's own width & height.

[Android.Runtime.Register("beginRecording", "()Landroid/graphics/RecordingCanvas;", "", ApiSince=29)]
public Android.Graphics.RecordingCanvas BeginRecording ();
[<Android.Runtime.Register("beginRecording", "()Landroid/graphics/RecordingCanvas;", "", ApiSince=29)>]
member this.BeginRecording : unit -> Android.Graphics.RecordingCanvas

Returns

A canvas to record drawing operations.

Attributes

Remarks

Same as #beginRecording(int, int) with the width & height set to the RenderNode's own width & height. The RenderNode's width & height may be set with #setPosition(int, int, int, int).

Java documentation for android.graphics.RenderNode.beginRecording().

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

BeginRecording(Int32, Int32)

Starts recording a display list for the render node.

[Android.Runtime.Register("beginRecording", "(II)Landroid/graphics/RecordingCanvas;", "", ApiSince=29)]
public Android.Graphics.RecordingCanvas BeginRecording (int width, int height);
[<Android.Runtime.Register("beginRecording", "(II)Landroid/graphics/RecordingCanvas;", "", ApiSince=29)>]
member this.BeginRecording : int * int -> Android.Graphics.RecordingCanvas

Parameters

width
Int32

The width of the recording viewport. This will not alter the width of the RenderNode itself, that must be set with #setPosition(Rect).

height
Int32

The height of the recording viewport. This will not alter the height of the RenderNode itself, that must be set with #setPosition(Rect).

Returns

A canvas to record drawing operations.

Attributes

Remarks

Starts recording a display list for the render node. All operations performed on the returned canvas are recorded and stored in this display list.

#endRecording() must be called when the recording is finished in order to apply the updated display list. Failing to call #endRecording() will result in an IllegalStateException if #beginRecording(int, int) is called again.

Java documentation for android.graphics.RenderNode.beginRecording(int, int).

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