DecodeFormat

enum DecodeFormat

Options for setting the value of getConfig for s returned by com.bumptech.glide.load.ResourceDecoders.

Note - In some cases it may not be possible to obey the requested setting, not all s support setting formats and certain images may not be able to be loaded as certain configurations. Therefore this class represents a preference rather than a requirement.

Entries

Link copied to clipboard

Bitmaps returned by the com.bumptech.glide.load.ResourceDecoder. should return ARGB_8888 for getConfig when possible.

Link copied to clipboard

Bitmaps decoded from image formats that support and/or use alpha (some types of PNGs, GIFs etc) should return ARGB_8888 for getConfig. Bitmaps decoded from formats that don't support or use alpha should return RGB_565 for getConfig.

Functions

Link copied to clipboard
open fun valueOf(name: String): DecodeFormat
Link copied to clipboard
open fun values(): Array<DecodeFormat>

Properties

Link copied to clipboard
val DEFAULT: DecodeFormat
The default value for DecodeFormat.