Idioma

ImageDecoder.AllocatorHardware Campo

Definição

Cuidado

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

Exigir um Bitmap.Config#HARDWAREBitmap.

[Android.Runtime.Register("ALLOCATOR_HARDWARE", 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 AllocatorHardware = 3;
[<Android.Runtime.Register("ALLOCATOR_HARDWARE", 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 AllocatorHardware : Android.Graphics.ImageDecoderAllocator

Valor do campo

Value = 3
Atributos

Comentários

Exigir um Bitmap.Config#HARDWAREBitmap.

Quando isso é combinado com opções incompatíveis, como #setMutableRequired setMutableRequired(true) ou #setDecodeAsAlphaMaskEnabled setDecodeAsAlphaMaskEnabled(true), #decodeDrawable decodeDrawable ou #decodeBitmap decodeBitmap gerará um java.lang.IllegalStateException.

Java documentação para android.graphics.ImageDecoder.ALLOCATOR_HARDWARE.

Partes desta página são modificações baseadas no trabalho criado e compartilhado pelo Project Open Source do Open Source e usadas de acordo com os termos descritos na Creative Commons 2.5.

Aplica-se a