public class LyidResource extends LayerResource
Class LyidResource.
LayerResource
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_TOOL_KEY
The type tool info key.
|
PSB_RESOURCE_SIGNATURE, RESOURCE_SIGNATURE
Constructor and Description |
---|
LyidResource(byte[] bytes)
Initializes a new instance of the
LyidResource class. |
LyidResource(int id)
Initializes a new instance of the
LyidResource class. |
Modifier and Type | Method and Description |
---|---|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
int |
getPsdVersion()
Gets the psd version.
|
int |
getSignature()
Gets the signature.
|
int |
getValue()
Gets the value.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves to the specified stream container.
|
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
public LyidResource(int id)
Initializes a new instance of the LyidResource
class.
id
- The identifier of layer.public LyidResource(byte[] bytes)
Initializes a new instance of the LyidResource
class.
With custom or unknown value
bytes
- The bytes.PsdImageArgumentException
- Invalid lyid Resource valuepublic final int getValue()
Gets the value.
public int getSignature()
Gets the signature.
getSignature
in class LayerResource
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 void save(StreamContainer streamContainer, int psdVersion)
Saves to the specified stream container.
save
in class LayerResource
streamContainer
- The stream container.psdVersion
- The PSD version.