public class LayerSectionResource extends LayerResource
The layer section resource.
Modifier and Type | Field and Description |
---|---|
static int |
TypeToolKey
The type tool info key.
|
PSB_RESOURCE_SIGNATURE, RESOURCE_SIGNATURE
Constructor and Description |
---|
LayerSectionResource()
Initializes a new instance of the
LayerSectionResource class. |
Modifier and Type | Method and Description |
---|---|
String |
getBlendModeKey()
Gets or sets the blend mode key.
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
int |
getPsdVersion()
Gets the minimal psd version required for layer resource.
|
int |
getSectionType()
Gets or sets the section type.
|
int |
getSignature()
Gets the layer resource signature.
|
int |
getSubtype()
Gets or sets the subtype.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource to the specified stream container.
|
void |
setBlendModeKey(String value)
Gets or sets the blend mode key.
|
void |
setSectionType(int value)
Gets or sets the section type.
|
void |
setSubtype(int value)
Gets or sets the subtype.
|
toString
public static final int TypeToolKey
The type tool info key.
public LayerSectionResource()
Initializes a new instance of the LayerSectionResource
class.
public String getBlendModeKey()
Gets or sets the blend mode key.
public void setBlendModeKey(String value)
Gets or sets the blend mode key.
PsdImageArgumentException
- if value's length is less then 4public int getKey()
Gets the layer resource key.
getKey
in class LayerResource
public int getLength()
Gets the layer resource length in bytes.
getLength
in class LayerResource
public int getPsdVersion()
Gets the minimal psd version required for layer resource. 0 indicates no restrictions.
getPsdVersion
in class LayerResource
public int getSectionType()
Gets or sets the section type.
public void setSectionType(int value)
Gets or sets the section type.
public int getSignature()
Gets the layer resource signature.
getSignature
in class LayerResource
public int getSubtype()
Gets or sets the subtype.
public void setSubtype(int value)
Gets or sets the subtype.
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.