共用方式為


Canvas.DrawRenderNode(RenderNode) Method

Definition

Draws the given RenderNode.

[Android.Runtime.Register("drawRenderNode", "(Landroid/graphics/RenderNode;)V", "GetDrawRenderNode_Landroid_graphics_RenderNode_Handler", ApiSince=29)]
public virtual void DrawRenderNode (Android.Graphics.RenderNode renderNode);
[<Android.Runtime.Register("drawRenderNode", "(Landroid/graphics/RenderNode;)V", "GetDrawRenderNode_Landroid_graphics_RenderNode_Handler", ApiSince=29)>]
abstract member DrawRenderNode : Android.Graphics.RenderNode -> unit
override this.DrawRenderNode : Android.Graphics.RenderNode -> unit

Parameters

renderNode
RenderNode

The RenderNode to draw, must be non-null.

Attributes

Remarks

Draws the given RenderNode. This is only supported in hardware rendering, which can be verified by asserting that #isHardwareAccelerated() is true. If #isHardwareAccelerated() is false then this throws an exception.

See RenderNode for more information on what a RenderNode is and how to use it.

Java documentation for android.graphics.Canvas.drawRenderNode(android.graphics.RenderNode).

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