public abstract class LayerResource extends Object
Represents layer info.
Modifier and Type | Field and Description |
---|---|
static int |
PsbResourceSignature
The PSB-specific resource signature.
|
static int |
ResourceSignature
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
String that represents this instance. |
public static final int ResourceSignature
The common resource signature.
public static final int PsbResourceSignature
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 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.