public static enum Image.OutputFormat extends java.lang.Enum<Image.OutputFormat>
Enum Constant and Description |
---|
A8
Each pixel value is stored on 8 bits, in
0xA format8 bits for alpha (0 to 255)0 bits for red 0 bits for green 0 bits for blue |
ARGB1555
Each pixel value is stored on 16 bits, in
0xARGB format1 bits for alpha (0 to 1)5 bits for red (0 to 31)5 bits for green (0 to 31)5 bits for blue (0 to 31) |
ARGB4444
Each pixel value is stored on 16 bits, in
0xARGB format4 bits for alpha (0 to 15)4 bits for red (0 to 15)4 bits for green (0 to 15)4 bits for blue (0 to 15) |
ARGB8888
Each pixel value is stored on 32 bits, in
0xARGB format. |
RGB565
Each pixel value is stored on 16 bits, in
0xRGB format0 bits for alpha (0 to 255)5 bits for red (0 to 31)6 bits for green (0 to 63)5 bits for blue (0 to 31) |
RGB888
Each pixel value is stored on 24 bits, in
0xRGB format0 bits for alpha 8 bits for red (0 to 255)8 bits for green (0 to 255)8 bits for blue (0 to 255) |
Modifier and Type | Method and Description |
---|---|
static Image.OutputFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Image.OutputFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Image.OutputFormat ARGB8888
0xARGB
format. alpha
(0 to 255)red
(0 to 255)green
(0 to 255)blue
(0 to 255)public static final Image.OutputFormat RGB888
0xRGB
formatalpha
red
(0 to 255)green
(0 to 255)blue
(0 to 255)public static final Image.OutputFormat RGB565
0xRGB
formatalpha
(0 to 255)red
(0 to 31)green
(0 to 63)blue
(0 to 31)public static final Image.OutputFormat ARGB1555
0xARGB
formatalpha
(0 to 1)red
(0 to 31)green
(0 to 31)blue
(0 to 31)public static final Image.OutputFormat ARGB4444
0xARGB
formatalpha
(0 to 15)red
(0 to 15)green
(0 to 15)blue
(0 to 15)public static final Image.OutputFormat A8
0xA
formatalpha
(0 to 255)red
green
blue
public static Image.OutputFormat[] values()
for (Image.OutputFormat c : Image.OutputFormat.values()) System.out.println(c);
public static Image.OutputFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null