public class LevlResource extends AdjustmentLayerResource
Class LevlResource. Resource of Exposure Adjustment Layer
AdjustmentLayerResource
,
LayerResource
Modifier and Type | Field and Description |
---|---|
static int |
TypeToolKey
The type tool info key.
|
PsbResourceSignature, ResourceSignature
Constructor and Description |
---|
LevlResource()
Initializes a new instance of the
LevlResource class. |
LevlResource(byte[] bytes)
Initializes a new instance of the
LevlResource class. |
Modifier and Type | Method and Description |
---|---|
LevelChannel |
getChannel(int channelIndex)
Gets the channel.
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
int |
getPsdVersion()
Gets the psd version.
|
short |
getVersion()
Gets the version.
|
void |
setVersion(short value)
Gets the version.
|
getData, getSignature, save
toString
public static final int TypeToolKey
The type tool info key.
public LevlResource(byte[] bytes)
Initializes a new instance of the LevlResource
class.
Supported in GrayScale, Duotone, RGB, CMYK, Lab color modes
2 bytes - Version (=2)
29 * 10 bytes - Sets of level records with 5 short integers
4 bytes - Lvls header (Starts at 292 index)
2 bytes - Version (=3)
2 bytes - Count of total level record
10 * (Total Count - 29)
Zero ending of Lvls resource should be fold for four too
bytes
- The bytes.public LevlResource()
Initializes a new instance of the LevlResource
class.
public final short getVersion()
Gets the version. Default is 2
Value: The version.public void setVersion(short value)
Gets the version. Default is 2
Value: The version.public int getKey()
Gets the layer resource key.
getKey
in class LayerResource
public int getLength()
Gets the layer resource length in bytes.
getLength
in class LayerResource
public int getPsdVersion()
Gets the psd version.
getPsdVersion
in class LayerResource
public final LevelChannel getChannel(int channelIndex)
Gets the channel.
channelIndex
- Index of the channel.