語言

TextureView.Bitmap 屬性

定義

回傳 android.graphics.Bitmap 相關表面貼圖內容的表示。

public virtual Android.Graphics.Bitmap? Bitmap { [Android.Runtime.Register("getBitmap", "()Landroid/graphics/Bitmap;", "GetGetBitmapHandler")] get; }
[<get: Android.Runtime.Register("getBitmap", "()Landroid/graphics/Bitmap;", "GetGetBitmapHandler")>]
member this.Bitmap : Android.Graphics.Bitmap

屬性值

有效的 位圖,或若無法取得表面紋理,或寬度 <= 0 或高度 <= 0,則為 null

屬性

備註

回傳 android.graphics.Bitmap 相關表面貼圖內容的表示。 若無法取得表面貼圖,則此方法回傳 null。

此方法回傳的位圖使用 Bitmap.Config#ARGB_8888 像素格式,其尺寸與此視圖相同。

<強>不要/強< 將此方法從繪圖方法>(例如)#onDraw(android.graphics.Canvas)中調用。

若複製過程中發生錯誤,則會回傳一個空的位圖。

Java 文件 android.view.TextureView.getBitmap()。

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

適用於

另請參閱