public class LnsrResource extends LayerResource
Class lnsrResource.
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 |
---|
LnsrResource(byte[] bytes)
Initializes a new instance of the
LnsrResource class. |
LnsrResource(int lnsrResourceType)
Initializes a new instance of the
LnsrResource class. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getData()
Gets the raw data.
|
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 as LnsrResourceType if corresponding enum is described.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the specified stream container.
|
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
public LnsrResource(int lnsrResourceType)
Initializes a new instance of the LnsrResource
class.
lnsrResourceType
- Type of the LNSR.PsdImageArgumentException
- You can not create lnsr with Unknown type valuepublic LnsrResource(byte[] bytes)
Initializes a new instance of the LnsrResource
class.
With custom or unknown value
bytes
- The bytes.com.aspose.ms.System.Exception
- Invalid lnsr Resource valuepublic int getSignature()
Gets the signature.
getSignature
in class LayerResource
public int getKey()
Gets the layer resource key.
getKey
in class LayerResource
public final byte[] getData()
Gets the raw data.
public final int getValue()
Gets the value as LnsrResourceType if corresponding enum is described. Otherwise return Unknown
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 the specified stream container.
save
in class LayerResource
streamContainer
- The stream container.psdVersion
- The PSD version.