ImageDecoder.AllocatorHardware Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This constant will be removed in the future version. Use Android.Graphics.ImageDecoderAllocator enum directly instead of this field.
Require a Bitmap.Config#HARDWARE
Bitmap
.
[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#HARDWARE
Bitmap
.
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.