public enum CompressionMethod extends Enum<CompressionMethod>
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 |
|---|---|
static CompressionMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionMethod 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 CompressionMethod 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 CompressionMethod ZipWithoutPrediction
ZIP without prediction.
public static final CompressionMethod ZipWithPrediction
ZIP with prediction.
public static CompressionMethod[] values()
for (CompressionMethod c : CompressionMethod.values()) System.out.println(c);
public static CompressionMethod 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 nullCopyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.