Aracılığıyla paylaş


Picture.Draw(Canvas) Method

Definition

Draw this picture on the canvas.

[Android.Runtime.Register("draw", "(Landroid/graphics/Canvas;)V", "GetDraw_Landroid_graphics_Canvas_Handler")]
public virtual void Draw (Android.Graphics.Canvas canvas);
[<Android.Runtime.Register("draw", "(Landroid/graphics/Canvas;)V", "GetDraw_Landroid_graphics_Canvas_Handler")>]
abstract member Draw : Android.Graphics.Canvas -> unit
override this.Draw : Android.Graphics.Canvas -> unit

Parameters

canvas
Canvas

The picture is drawn to this canvas

Attributes

Remarks

Draw this picture on the canvas.

Prior to android.os.Build.VERSION_CODES#LOLLIPOP, this call could have the side effect of changing the matrix and clip of the canvas if this picture had imbalanced saves/restores.

<strong>Note:</strong> This forces the picture to internally call Picture#endRecording() in order to prepare for playback.

Java documentation for android.graphics.Picture.draw(android.graphics.Canvas).

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