public enum RasterFormat extends Enum<RasterFormat> implements Enumeration
RasterBand
layouts that may be contained within a Raster
dataset. Each pixel of the raster
will contain the bands defined by the layout in the specified order. A typical color raster image will have an RGB
RasterFormat
.RasterAttributes
,
Rasters and Filtering topicEnum Constant and Description |
---|
ALPHA
The format of the
Raster is a single band consisting of alpha values. |
BGR
The format of the
Raster is three bands consisting of blue, green, and red values. |
BGRA
The format of the
Raster is four bands consisting of blue, green, red, and alpha values. |
BLUE
The format of the
Raster is a single band consisting of blue values. |
GREEN
The format of the
Raster is a single band consisting of green values. |
LUMINANCE
The format of the
Raster is a single band consisting of luminance values. |
LUMINANCE_ALPHA
The format of the
Raster is two bands consisting of luminance and alpha values. |
RED
The format of the
Raster is a single band consisting of red values. |
RGB
The format of the
Raster is three bands consisting of red, green, and blue values. |
RGBA
The format of the
Raster is four bands consisting of red, green, blue, and alpha values. |
Modifier and Type | Method and Description |
---|---|
static RasterFormat |
getDefault()
Get the enum constant that is considered to be the default.
|
static RasterFormat |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static RasterFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RasterFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RasterFormat RED
Raster
is a single band consisting of red values.public static final RasterFormat GREEN
Raster
is a single band consisting of green values.public static final RasterFormat BLUE
Raster
is a single band consisting of blue values.public static final RasterFormat ALPHA
Raster
is a single band consisting of alpha values.public static final RasterFormat RGB
Raster
is three bands consisting of red, green, and blue values.public static final RasterFormat BGR
Raster
is three bands consisting of blue, green, and red values.public static final RasterFormat RGBA
Raster
is four bands consisting of red, green, blue, and alpha values.public static final RasterFormat BGRA
Raster
is four bands consisting of blue, green, red, and alpha values.public static final RasterFormat LUMINANCE
Raster
is a single band consisting of luminance values.public static final RasterFormat LUMINANCE_ALPHA
Raster
is two bands consisting of luminance and alpha values.public static RasterFormat[] values()
for (RasterFormat c : RasterFormat.values()) System.out.println(c);
public static RasterFormat 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 int getValue()
getValue
in interface Enumeration
@Nonnull public static RasterFormat getFromValue(int value)
value
- a numeric value.@Nonnull public static RasterFormat getDefault()