ImageDecoderAllocator Enum
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.
public enum ImageDecoderAllocator
type ImageDecoderAllocator =
- Inheritance
-
ImageDecoderAllocator
Fields
| Name | Value | Description |
|---|---|---|
| Default | 0 | Use the default allocation for the pixel memory. Will typically result in a Bitmap.Config.HARDWARE allocation, but may be software for small images. In addition, this will switch to software when HARDWARE is incompatible, e.g. setMutableRequired(true) or setDecodeAsAlphaMaskEnabled(true). Android reference for 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. |
| Software | 1 | Use a software allocation for the pixel memory. Useful for drawing to a software Canvas or for accessing the pixels on the final output. Android reference for 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. |
| SharedMemory | 2 | Use shared memory for the pixel memory. Useful for sharing across processes. Android reference for 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. |
| Hardware | 3 | Require a Bitmap.Config.HARDWARE Bitmap. When this is combined with incompatible options, like setMutableRequired(true) or setDecodeAsAlphaMaskEnabled(true), decodeDrawable or decodeBitmap will throw an IllegalStateException. Android reference for 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. |