ImageDecoder.AllocatorHardware 欄位
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。