Langage

ImageDecoder.AllocatorDefault Champ

Définition

Attention

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

Utilisez l’allocation par défaut pour la mémoire de pixels.

[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

Valeur de champ

Value = 0
Attributs

Remarques

Utilisez l’allocation par défaut pour la mémoire de pixels.

Entraîne généralement une Bitmap.Config#HARDWARE allocation, mais peut être logicielle pour de petites images. En outre, cela bascule vers les logiciels lorsque le matériel est incompatible, par exemple #setMutableRequired setMutableRequired(true) , ou #setDecodeAsAlphaMaskEnabled setDecodeAsAlphaMaskEnabled(true).

Java documentation pour android.graphics.ImageDecoder.ALLOCATOR_DEFAULT.

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à