語言

Canvas.DrawPicture 方法

定義

多載

名稱 Description
DrawPicture(Picture)

儲存畫布狀態,畫圖,然後還原畫布狀態。

DrawPicture(Picture, Rect)

畫出一張圖,拉伸成適合 dst 矩形的畫面。

DrawPicture(Picture, RectF)

畫出一張圖,拉伸成適合 dst 矩形的畫面。

DrawPicture(Picture)

儲存畫布狀態,畫圖,然後還原畫布狀態。

[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

參數

picture
Picture

要畫的畫面

屬性

備註

儲存畫布狀態,畫圖,然後還原畫布狀態。 這與 picture.draw(canvas) 不同,後者不執行任何儲存/還原。

注意: 這會迫使畫面在內部呼叫 Picture#endRecording ,以便準備播放。

Java 文件 android.graphics.Canvas.drawPicture(android.graphics.Picture)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

DrawPicture(Picture, Rect)

畫出一張圖,拉伸成適合 dst 矩形的畫面。

[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

參數

picture
Picture

要畫的畫面

dst
Rect

長方形提供圖片的擺放與縮放邊界。

屬性

備註

畫出一張圖,拉伸成適合 dst 矩形的畫面。

Java 文件 android.graphics.Canvas.drawPicture(android.graphics.Picture, android.graphics.Rect)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

DrawPicture(Picture, RectF)

畫出一張圖,拉伸成適合 dst 矩形的畫面。

[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

參數

picture
Picture

要畫的畫面

dst
RectF

長方形提供圖片的擺放與縮放邊界。

屬性

備註

畫出一張圖,拉伸成適合 dst 矩形的畫面。

Java 文件 android.graphics.Canvas.drawPicture(android.graphics.Picture, android.graphics.RectF)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於