語言

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。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於