public class CustResource extends LayerResource
Class CustResource. This resource contains information about blending of clipped element.
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 |
---|
CustResource()
Initializes a new instance of the
CustResource class. |
CustResource(byte[] data)
Initializes a new instance of the
CustResource class. |
Modifier and Type | Method and Description |
---|---|
int |
getKey()
Gets the layer resource key.
|
Date |
getLayerCreatedDateTime()
Gets the layer created date.
|
int |
getLength()
Gets the layer resource length in bytes.
|
int |
getPsdVersion()
Gets the psd version.
|
int |
getSignature()
Gets the signature.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource to the specified stream container.
|
void |
setLayerCreatedDateTime(Date value)
Sets the layer created date.
|
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
public CustResource()
Initializes a new instance of the CustResource
class.
public CustResource(byte[] data)
Initializes a new instance of the CustResource
class.
data
- The data of the resource.public final Date getLayerCreatedDateTime()
Gets the layer created date.
public final void setLayerCreatedDateTime(Date value)
Sets the layer created date.
value
- the layer created date.public int getKey()
Gets the layer resource key.
getKey
in class LayerResource
public int getSignature()
Gets the signature.
getSignature
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 the resource to the specified stream container.
save
in class LayerResource
streamContainer
- The stream container to save to.psdVersion
- The PSD version.