共用方式為


ImageDecoder.AllocatorHardware Field

Definition

Caution

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

Require a 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

Field Value

Value = 3
Attributes

Remarks

Require a Bitmap.Config#HARDWAREBitmap.

When this is combined with incompatible options, like #setMutableRequired setMutableRequired(true) or #setDecodeAsAlphaMaskEnabled setDecodeAsAlphaMaskEnabled(true), #decodeDrawable decodeDrawable or #decodeBitmap decodeBitmap will throw an java.lang.IllegalStateException.

Java documentation for android.graphics.ImageDecoder.ALLOCATOR_HARDWARE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to