Android.Graphics.Bitmap.AllocationByteCount Property
Returns the size of the allocated memory used to store this bitmap's pixels.

Syntax

[get: Android.Runtime.Register("getAllocationByteCount", "()I", "GetGetAllocationByteCountHandler")]
public int AllocationByteCount { get; }

See Also

Bitmap.Reconfigure(int, System.Int32, System.Int32)

Value

Documentation for this section has not yet been entered.

Remarks

Returns the size of the allocated memory used to store this bitmap's pixels.

This can be larger than the result of Bitmap.ByteCount if a bitmap is reused to decode other bitmaps of smaller size, or by manual reconfiguration. See Bitmap.Reconfigure(int, System.Int32, System.Int32), Bitmap.Width, Bitmap.Height, Bitmap.SetConfig(.Config), and NoType:android/graphics/BitmapFactory$Options;Href=../../../reference/android/graphics/BitmapFactory.Options.html#inBitmap. If a bitmap is not modified in this way, this value will be the same as that returned by Bitmap.ByteCount.

This value will not change over the lifetime of a Bitmap.

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0