public static enum Bitmap.Config extends Enum<Bitmap.Config>
Enum Constant and Description |
---|
ALPHA_8
Each pixel is stored as a single translucency (alpha) channel.
|
ARGB_4444
Deprecated.
Because of the poor quality of this configuration,
it is advised to use
ARGB_8888 instead. |
ARGB_8888
Each pixel is stored on 4 bytes.
|
RGB_565
Each pixel is stored on 2 bytes and only the RGB channels are
encoded: red is stored with 5 bits of precision (32 possible
values), green is stored with 6 bits of precision (64 possible
values) and blue is stored with 5 bits of precision.
|
Modifier and Type | Method and Description |
---|---|
static Bitmap.Config |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Bitmap.Config[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bitmap.Config ALPHA_8
public static final Bitmap.Config RGB_565
@Deprecated public static final Bitmap.Config ARGB_4444
ARGB_8888
instead.ARGB_8888
instead of this
configuration.
Note: as of Build.VERSION_CODES.KITKAT
,
any bitmap created with this configuration will be created
using ARGB_8888
instead.public static final Bitmap.Config ARGB_8888
public static Bitmap.Config[] values()
for (Bitmap.Config c : Bitmap.Config.values()) System.out.println(c);
public static Bitmap.Config valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null