Bitmap.AllocationByteCount 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳用於儲存此位圖像素的分配記憶體大小。
public int AllocationByteCount { [Android.Runtime.Register("getAllocationByteCount", "()I", "")] get; }
[<get: Android.Runtime.Register("getAllocationByteCount", "()I", "")>]
member this.AllocationByteCount : int
屬性值
- 屬性
備註
回傳用於儲存此位圖像素的分配記憶體大小。
這可能比重複使用點陣圖解碼其他較小點陣圖或手動重新配置時的結果 #getByteCount() 還要大。 參見 #reconfigure(int, int, Config)、 #setWidth(int)、 #setHeight(int)、 #setConfig(Bitmap.Config)BitmapFactory.Options#inBitmap BitmapFactory.Options.inBitmap和 。 若位圖未以此方式修改,此值將與 返回 #getByteCount()的值相同。
這個值在位圖的整個壽命期間不會改變。
Java 文件 android.graphics.Bitmap.getAllocationByteCount()。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
另請參閱
- <xref:Android.Graphics.Bitmap.Reconfigure(System.Int32%2c+System.Int32%2c+System.Int32)>