public class LnsrResource extends LayerResource
Class lnsrResource.
LayerResource| Modifier and Type | Field and Description |
|---|---|
static int |
TypeToolKey
The type tool info key.
|
PsbResourceSignature, ResourceSignature| 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.
|
toStringpublic static final int TypeToolKey
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 LayerResourcepublic int getKey()
Gets the layer resource key.
getKey in class LayerResourcepublic final byte[] getData()
Gets the raw data.
Value: The data.public final int getValue()
Gets the value as LnsrResourceType if corresponding enum is described. Otherwise return Unknown
Value: The value as LnsrResourceTypepublic int getLength()
Gets the layer resource length in bytes.
getLength in class LayerResourcepublic int getPsdVersion()
Gets the psd version.
getPsdVersion in class LayerResourcepublic void save(StreamContainer streamContainer, int psdVersion)
Saves the specified stream container.
save in class LayerResourcestreamContainer - The stream container.psdVersion - The PSD version.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.