public abstract class LayerResource extends Object
Represents layer info.
Modifier and Type | Field and Description |
---|---|
static int |
PSB_RESOURCE_SIGNATURE
The PSB-specific resource signature.
|
static int |
RESOURCE_SIGNATURE
The common resource signature.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
getKey()
Gets the layer resource key.
|
abstract int |
getLength()
Gets the layer resource length in bytes.
|
abstract int |
getPsdVersion()
Gets the minimal psd version required for layer resource.
|
abstract int |
getSignature()
Gets the layer resource signature.
|
abstract void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource to the specified stream container.
|
String |
toString()
Returns a
System.String that represents this instance. |
public static final int RESOURCE_SIGNATURE
The common resource signature.
public static final int PSB_RESOURCE_SIGNATURE
The PSB-specific resource signature.
public abstract int getSignature()
Gets the layer resource signature.
public abstract int getKey()
Gets the layer resource key.
public abstract int getLength()
Gets the layer resource length in bytes.
public abstract int getPsdVersion()
Gets the minimal psd version required for layer resource. 0 indicates no restrictions.
public String toString()
Returns a System.String
that represents this instance.
public abstract void save(StreamContainer streamContainer, int psdVersion)
Saves the resource to the specified stream container.
streamContainer
- The stream container to save to.psdVersion
- The PSD version.