PsdCompressionMethod

Contents
[ ]

Inheritance: java.lang.Object, java.lang.Enum

All Implemented Interfaces: com.groupdocs.metadata.core.IEnumValue

public enum PsdCompressionMethod extends Enum<PsdCompressionMethod> implements IEnumValue

Defines the compression method used for image data.

Fields

Field Description
Raw No compression.
Rle RLE compressed.
ZipWithoutPrediction ZIP without prediction.
ZipWithPrediction ZIP with prediction.

Methods

Method Description
values()
valueOf(String name)
getByRawValue(int rawValue)
getFirst()
getAllValues()
getEnumValueByRawValue(int rawValue)
getEnumValueByName(String name)
getRawValueType()
getRawValue()

Raw

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.

Rle

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.

ZipWithoutPrediction

public static final PsdCompressionMethod ZipWithoutPrediction

ZIP without prediction.

ZipWithPrediction

public static final PsdCompressionMethod ZipWithPrediction

ZIP with prediction.

values()

public static PsdCompressionMethod[] values()

Returns: com.groupdocs.metadata.core.PsdCompressionMethod[]

valueOf(String name)

public static PsdCompressionMethod valueOf(String name)

Parameters:

Parameter Type Description
name java.lang.String

Returns: PsdCompressionMethod

getByRawValue(int rawValue)

public static PsdCompressionMethod getByRawValue(int rawValue)

Parameters:

Parameter Type Description
rawValue int

Returns: PsdCompressionMethod

getFirst()

public static IEnumValue getFirst()

Returns: IEnumValue

getAllValues()

public Object[] getAllValues()

Returns the array of all values defined in the class.

Returns: java.lang.Object[]

getEnumValueByRawValue(int rawValue)

public IEnumValue getEnumValueByRawValue(int rawValue)

Returns the enumeration value by the raw value associated with it.

Parameters:

Parameter Type Description
rawValue int

Returns: IEnumValue

getEnumValueByName(String name)

public IEnumValue getEnumValueByName(String name)

Returns the enumeration value by its name.

Parameters:

Parameter Type Description
name java.lang.String

Returns: IEnumValue

getRawValueType()

public RawIntegerType getRawValueType()

Returns the underlying type of the raw value of this enumeration value.

Returns: RawIntegerType

getRawValue()

public int getRawValue()

Returns the raw value of this enumeration value.

Returns: int