public enum ColorFormat extends java.lang.Enum<ColorFormat>
Enum Constant and Description |
---|
COLOR_FORMAT_BGRA
An image format that describes images with four channels, one for each color: blue, green and red
and one for alpha. |
COLOR_FORMAT_GRAYSCALE
An image format that describes images with a single color channel.
|
COLOR_FORMAT_GRAYSCALE_ALPHA
An image format that describes images with two channels, one for color and the other
for alpha. |
COLOR_FORMAT_RGB
An image format that describes images with three channels, one for each color: red, green and blue.
|
COLOR_FORMAT_RGB_565
An image format that describes images with three channels, one for each color: red, green, and blue.
Red and blue colors are each packed into 5 bits, green into 6 bits. |
COLOR_FORMAT_RGBA
An image format that describes images with four channels, one for each color: red, green and blue
and one for alpha. |
COLOR_FORMAT_RGBA_4444
An image format that describes images with four channels, one for each color: red, green, and blue
and one for alpha. |
COLOR_FORMAT_UNSUPPORTED
Options for identifiny unsupported image formats.
|
Modifier and Type | Method and Description |
---|---|
static ColorFormat |
swigToEnum(int swigValue) |
int |
swigValue() |
static ColorFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColorFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorFormat COLOR_FORMAT_UNSUPPORTED
public static final ColorFormat COLOR_FORMAT_GRAYSCALE
public static final ColorFormat COLOR_FORMAT_GRAYSCALE_ALPHA
public static final ColorFormat COLOR_FORMAT_RGB
public static final ColorFormat COLOR_FORMAT_RGBA
public static final ColorFormat COLOR_FORMAT_BGRA
public static final ColorFormat COLOR_FORMAT_RGBA_4444
public static final ColorFormat COLOR_FORMAT_RGB_565
public static ColorFormat[] values()
for (ColorFormat c : ColorFormat.values()) System.out.println(c);
public static ColorFormat 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 nullpublic final int swigValue()
public static ColorFormat swigToEnum(int swigValue)