public enum CompressionMethodEnum extends Enum<CompressionMethodEnum>
Defines the compression method used for image data.
Enum Constant and Description |
---|
Raw
No compression.
|
RLE
RLE compressed the image data starts with the byte counts for all the scan lines (rows * channels), with each
count stored as a two-byte value.
|
ZipWithoutPrediction
ZIP without prediction.
|
ZipWithPrediction
ZIP with prediction.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Gets the value that represents the type of the enum.
|
static CompressionMethodEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionMethodEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionMethodEnum Raw
No compression. The image data stored as raw bytes in RGBA planar order. That means that first all R data is written, then all G is written, then all B and finally all A data is written.
public static final CompressionMethodEnum RLE
RLE compressed the image data starts with the byte counts for all the scan lines (rows * channels), with each count stored as a two-byte value. The RLE compressed data follows, with each scan line compressed separately. The RLE compression is the same compression algorithm used by the Macintosh ROM routine PackBits and the TIFF standard.
public static final CompressionMethodEnum ZipWithoutPrediction
ZIP without prediction.
public static final CompressionMethodEnum ZipWithPrediction
ZIP with prediction.
public static CompressionMethodEnum[] values()
for (CompressionMethodEnum c : CompressionMethodEnum.values()) System.out.println(c);
public static CompressionMethodEnum 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 getType()