次の方法で共有


Bitmap.ByteCount Property

Definition

Returns the minimum number of bytes that can be used to store this bitmap's pixels.

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

Property Value

Attributes

Remarks

Returns the minimum number of bytes that can be used to store this bitmap's pixels.

As of android.os.Build.VERSION_CODES#KITKAT, the result of this method can no longer be used to determine memory usage of a bitmap. See #getAllocationByteCount().

Java documentation for android.graphics.Bitmap.getByteCount().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to