Bitmap.ByteCount 属性

定义

返回可用于存储此位图像素的最小字节数。

public int ByteCount { [Android.Runtime.Register("getByteCount", "()I", "")] get; }
[<get: Android.Runtime.Register("getByteCount", "()I", "")>]
member this.ByteCount : int

属性值

属性

注解

返回可用于存储此位图像素的最小字节数。

因此 android.os.Build.VERSION_CODES#KITKAT,此方法的结果不能再用于确定位图的内存使用情况。 请参阅 #getAllocationByteCount()

Java文档android.graphics.Bitmap.getByteCount()

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于