public enum PixelFormat extends Enum<PixelFormat>
Enum Constant and Description |
---|
Float32
Single band 32-bit float values.
|
Rgb32
RGB values with each band using 32 bits, i.e., 3 floats.
|
Rgb565
RGB values using 16 bits, i.e., 2 unsigned bytes, layed out as 5+6+5 bits.
|
Rgb888
RGB values using 24 bits, i.e., 3 unsigned bytes.
|
Rgba8888
RGBA values using 32 bits, i.e., 4 unsigned bytes.
|
UnsignedShort
16-bit unsigned integer values
|
Modifier and Type | Method and Description |
---|---|
static PixelFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PixelFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PixelFormat Rgb888
public static final PixelFormat Rgba8888
public static final PixelFormat Float32
public static final PixelFormat Rgb32
public static final PixelFormat UnsignedShort
public static final PixelFormat Rgb565
public static PixelFormat[] values()
for (PixelFormat c : PixelFormat.values()) System.out.println(c);
public static PixelFormat 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