共用方式為


Canvas.DrawPicture Method

Definition

Overloads

DrawPicture(Picture)

Save the canvas state, draw the picture, and restore the canvas state.

DrawPicture(Picture, Rect)

Draw the picture, stretched to fit into the dst rectangle.

DrawPicture(Picture, RectF)

Draw the picture, stretched to fit into the dst rectangle.

DrawPicture(Picture)

Save the canvas state, draw the picture, and restore the canvas state.

[Android.Runtime.Register("drawPicture", "(Landroid/graphics/Picture;)V", "GetDrawPicture_Landroid_graphics_Picture_Handler")]
public virtual void DrawPicture (Android.Graphics.Picture picture);
[<Android.Runtime.Register("drawPicture", "(Landroid/graphics/Picture;)V", "GetDrawPicture_Landroid_graphics_Picture_Handler")>]
abstract member DrawPicture : Android.Graphics.Picture -> unit
override this.DrawPicture : Android.Graphics.Picture -> unit

Parameters

picture
Picture

The picture to be drawn

Attributes

Remarks

Save the canvas state, draw the picture, and restore the canvas state. This differs from picture.draw(canvas), which does not perform any save/restore.

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

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

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

DrawPicture(Picture, Rect)

Draw the picture, stretched to fit into the dst rectangle.

[Android.Runtime.Register("drawPicture", "(Landroid/graphics/Picture;Landroid/graphics/Rect;)V", "GetDrawPicture_Landroid_graphics_Picture_Landroid_graphics_Rect_Handler")]
public virtual void DrawPicture (Android.Graphics.Picture picture, Android.Graphics.Rect dst);
[<Android.Runtime.Register("drawPicture", "(Landroid/graphics/Picture;Landroid/graphics/Rect;)V", "GetDrawPicture_Landroid_graphics_Picture_Landroid_graphics_Rect_Handler")>]
abstract member DrawPicture : Android.Graphics.Picture * Android.Graphics.Rect -> unit
override this.DrawPicture : Android.Graphics.Picture * Android.Graphics.Rect -> unit

Parameters

picture
Picture

The picture to be drawn

dst
Rect
Attributes

Remarks

Draw the picture, stretched to fit into the dst rectangle.

Java documentation for android.graphics.Canvas.drawPicture(android.graphics.Picture, android.graphics.Rect).

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

DrawPicture(Picture, RectF)

Draw the picture, stretched to fit into the dst rectangle.

[Android.Runtime.Register("drawPicture", "(Landroid/graphics/Picture;Landroid/graphics/RectF;)V", "GetDrawPicture_Landroid_graphics_Picture_Landroid_graphics_RectF_Handler")]
public virtual void DrawPicture (Android.Graphics.Picture picture, Android.Graphics.RectF dst);
[<Android.Runtime.Register("drawPicture", "(Landroid/graphics/Picture;Landroid/graphics/RectF;)V", "GetDrawPicture_Landroid_graphics_Picture_Landroid_graphics_RectF_Handler")>]
abstract member DrawPicture : Android.Graphics.Picture * Android.Graphics.RectF -> unit
override this.DrawPicture : Android.Graphics.Picture * Android.Graphics.RectF -> unit

Parameters

picture
Picture

The picture to be drawn

dst
RectF
Attributes

Remarks

Draw the picture, stretched to fit into the dst rectangle.

Java documentation for android.graphics.Canvas.drawPicture(android.graphics.Picture, android.graphics.RectF).

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