public enum Format extends Enum<Format>
Enum Constant and Description |
---|
A1
A1 format.
|
A2
A2 format.
|
A4
A4 format.
|
A8
A8 format.
|
AC11
AC11 format.
|
AC22
AC22 format.
|
AC44
AC44 format.
|
ARGB1555
ARGB1555 format.
|
ARGB1555_PRE
ARGB1555 pre-multiplied format (each color component is multiplied by the opacity).
|
ARGB4444
ARGB4444 format.
|
ARGB4444_PRE
ARGB4444 pre-multiplied format (each color component is multiplied by the opacity).
|
ARGB8888
ARGB8888 format.
|
ARGB8888_PRE
ARGB8888 pre-multiplied format (each color component is multiplied by the opacity).
|
C1
C1 format.
|
C2
C2 format.
|
C4
C4 format.
|
CUSTOM_0
Custom format 0.
|
CUSTOM_1
Custom format 1.
|
CUSTOM_2
Custom format 2.
|
CUSTOM_3
Custom format 3.
|
CUSTOM_4
Custom format 4.
|
CUSTOM_5
Custom format 5.
|
CUSTOM_6
Custom format 6.
|
CUSTOM_7
Custom format 7.
|
DISPLAY
Same format as the display.
|
RGB565
RGB565 format.
|
RGB888
RGB888 format.
|
Modifier and Type | Method and Description |
---|---|
byte |
getSNIContext()
Returns the SNI context data of this format.
|
static Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Format A1
public static final Format A2
public static final Format A4
public static final Format A8
public static final Format AC11
public static final Format AC22
public static final Format AC44
public static final Format ARGB1555
public static final Format ARGB1555_PRE
public static final Format ARGB4444
public static final Format ARGB4444_PRE
public static final Format ARGB8888
public static final Format ARGB8888_PRE
public static final Format C1
public static final Format C2
public static final Format C4
public static final Format CUSTOM_0
public static final Format CUSTOM_1
public static final Format CUSTOM_2
public static final Format CUSTOM_3
public static final Format CUSTOM_4
public static final Format CUSTOM_5
public static final Format CUSTOM_6
public static final Format CUSTOM_7
public static final Format DISPLAY
It can be an alias for one of the other formats if the display uses a standard format. Otherwise, it represents the display custom format.
Useful to create a buffered image with the same format as the display for instance.
public static final Format RGB565
public static final Format RGB888
public byte getSNIContext()
The SNI context can be used to call a native method with SNI. This allows to identify the format in the native world.
The data format is implementation specific.
public static Format 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 nullpublic static Format[] values()
for (Format c : Format.values()) System.out.println(c);