语言

ImageDecoder.AllocatorHardware 字段

定义

注意

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

需要一个 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

字段值

Value = 3
特性

注解

需要一个 Bitmap.Config#HARDWAREBitmap。

当这与不兼容的选项(例如 #setMutableRequired setMutableRequired(true) 或 #setDecodeAsAlphaMaskEnabled setDecodeAsAlphaMaskEnabled(true)) #decodeDrawable decodeDrawable#decodeBitmap decodeBitmap 或将引发时 java.lang.IllegalStateException。

Java文档android.graphics.ImageDecoder.ALLOCATOR_HARDWARE。

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于