Android Guides | Samples

Android.Graphics.Bitmap.ByteCount Property

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

Syntax

[get: Android.Runtime.Register("getByteCount", "()I", "GetGetByteCountHandler")]
public Int32 ByteCount { get; }

Remarks

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

As of Build+VERSION_CODES.KitKat, the result of this method can no longer be used to determine memory usage of a bitmap. See Bitmap.AllocationByteCount.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 12