Lenguaje

ImageDecoder.AllocatorHardware Campo

Definición

Precaución

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

Requerir un 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 de campo

Value = 3
Atributos

Comentarios

Requerir un Bitmap.Config#HARDWAREBitmap.

Cuando esto se combina con opciones incompatibles, como #setMutableRequired setMutableRequired(true) o #setDecodeAsAlphaMaskEnabled setDecodeAsAlphaMaskEnabled(true), #decodeDrawable decodeDrawable o #decodeBitmap decodeBitmap producirá una java.lang.IllegalStateExceptionexcepción .

Java documentación para android.graphics.ImageDecoder.ALLOCATOR_HARDWARE.

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a