Language

ImageDecoderMemoryPolicy Enum

Definition

public enum ImageDecoderMemoryPolicy
type ImageDecoderMemoryPolicy = 
Inheritance
ImageDecoderMemoryPolicy

Fields

Name Value Description
LowRam 0

Save memory if possible by using a denser Bitmap.Config at the cost of some image quality. For example an opaque 8-bit image may be compressed into an Bitmap.Config.RGB_565 configuration, sacrificing image quality to save memory.

Android reference for android.graphics.ImageDecoder.MEMORY_POLICY_LOW_RAM.

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.

Default 1

Use the most natural Bitmap.Config for the internal Bitmap. This is the recommended default for most applications and usages. This will use the closest Bitmap.Config for the encoded source. If the encoded source does not exactly match any Bitmap.Config, the next highest quality Bitmap.Config will be used avoiding any loss in image quality.

Android reference for android.graphics.ImageDecoder.MEMORY_POLICY_DEFAULT.

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