public enum PsdCompressionMethod extends Enum<PsdCompressionMethod> implements IEnumValue
Defines the compression method used for image data.
Enum Constant and Description |
---|
Raw
No compression.
|
Rle
RLE compressed.
|
ZipWithoutPrediction
ZIP without prediction.
|
ZipWithPrediction
ZIP with prediction.
|
Modifier and Type | Method and Description |
---|---|
Object[] |
getAllValues()
Returns the array of all values defined in the class.
|
static PsdCompressionMethod |
getByRawValue(int rawValue) |
IEnumValue |
getEnumValueByName(String name)
Returns the enumeration value by its name.
|
IEnumValue |
getEnumValueByRawValue(int rawValue)
Returns the enumeration value by the raw value associated with it.
|
static IEnumValue |
getFirst() |
int |
getRawValue()
Returns the raw value of this enumeration value.
|
RawIntegerType |
getRawValueType()
Returns the underlying type of the raw value of this enumeration value.
|
static PsdCompressionMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PsdCompressionMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final PsdCompressionMethod 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 PsdCompressionMethod 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 PsdCompressionMethod ZipWithoutPrediction
ZIP without prediction.
public static final PsdCompressionMethod ZipWithPrediction
ZIP with prediction.
public static PsdCompressionMethod[] values()
for (PsdCompressionMethod c : PsdCompressionMethod.values()) System.out.println(c);
public static PsdCompressionMethod 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 static PsdCompressionMethod getByRawValue(int rawValue)
public static IEnumValue getFirst()
public Object[] getAllValues()
IEnumValue
Returns the array of all values defined in the class.
getAllValues
in interface IEnumValue
public IEnumValue getEnumValueByRawValue(int rawValue)
IEnumValue
Returns the enumeration value by the raw value associated with it.
getEnumValueByRawValue
in interface IEnumValue
rawValue
- The raw value.public IEnumValue getEnumValueByName(String name)
IEnumValue
Returns the enumeration value by its name.
getEnumValueByName
in interface IEnumValue
name
- The name of the enumeration value.public RawIntegerType getRawValueType()
IEnumValue
Returns the underlying type of the raw value of this enumeration value.
getRawValueType
in interface IEnumValue
public int getRawValue()
IEnumValue
Returns the raw value of this enumeration value.
getRawValue
in interface IEnumValue