TextureView.Bitmap 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳 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
屬性值
有效的
- 屬性
備註
回傳 android.graphics.Bitmap 相關表面貼圖內容的表示。 若無法取得表面貼圖,則此方法回傳 null。
此方法回傳的位圖使用 Bitmap.Config#ARGB_8888 像素格式,其尺寸與此視圖相同。
<強>不要/強< 將此方法從繪圖方法>(例如)#onDraw(android.graphics.Canvas)中調用。
若複製過程中發生錯誤,則會回傳一個空的位圖。
Java 文件 android.view.TextureView.getBitmap()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
另請參閱
- IsAvailable
- GetBitmap(Bitmap)
- <xref:Android.Views.TextureView.GetBitmap(System.Int32%2c+System.Int32)>