public class LayerSectionResource extends LayerResource
The layer section resource.
Modifier and Type | Field and Description |
---|---|
static int |
TypeToolKey
The type tool info key.
|
PsbResourceSignature, ResourceSignature
Constructor and Description |
---|
LayerSectionResource()
Initializes a new instance of the
LayerSectionResource class. |
Modifier and Type | Method and Description |
---|---|
long |
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(long 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 final long getBlendModeKey()
Gets or sets the blend mode key.
PsdImageArgumentException
- BlendModeKey must be 4 characters in length.public final void setBlendModeKey(long value)
Gets or sets the blend mode key.
PsdImageArgumentException
- BlendModeKey must be 4 characters in length.public 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 final int getSectionType()
Gets or sets the section type.
public final void setSectionType(int value)
Gets or sets the section type.
public int getSignature()
Gets the layer resource signature.
getSignature
in class LayerResource
public final int getSubtype()
Gets or sets the subtype.
public final 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.