Compartilhar via


ImageDecoder.AllocatorDefault Field

Definition

Caution

This constant will be removed in the future version. Use Android.Graphics.ImageDecoderAllocator enum directly instead of this field.

Use the default allocation for the pixel memory.

[Android.Runtime.Register("ALLOCATOR_DEFAULT", ApiSince=28)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageDecoderAllocator enum directly instead of this field.", true)]
public const Android.Graphics.ImageDecoderAllocator AllocatorDefault = 0;
[<Android.Runtime.Register("ALLOCATOR_DEFAULT", ApiSince=28)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageDecoderAllocator enum directly instead of this field.", true)>]
val mutable AllocatorDefault : Android.Graphics.ImageDecoderAllocator

Field Value

Value = 0
Attributes

Remarks

Use the default allocation for the pixel memory.

Will typically result in a Bitmap.Config#HARDWARE allocation, but may be software for small images. In addition, this will switch to software when HARDWARE is incompatible, e.g. #setMutableRequired setMutableRequired(true) or #setDecodeAsAlphaMaskEnabled setDecodeAsAlphaMaskEnabled(true).

Java documentation for android.graphics.ImageDecoder.ALLOCATOR_DEFAULT.

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