ImageDecoder.AllocatorDefault 字段

定义

注意

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

对像素内存使用默认分配。

[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

字段值

Value = 0
属性

注解

对像素内存使用默认分配。

通常会导致 Bitmap.Config#HARDWARE 分配,但可能是小映像的软件。 此外,当硬件不兼容时,这将切换到软件,例如 #setMutableRequired setMutableRequired(true)#setDecodeAsAlphaMaskEnabled setDecodeAsAlphaMaskEnabled(true)

Java文档android.graphics.ImageDecoder.ALLOCATOR_DEFAULT

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于