public class LclrResource extends LayerResource
Class LclrResource. This resource contains information about color of layer in layers' list is PS. It's only
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 |
---|
LclrResource()
Initializes a new instance of the
LclrResource class. |
LclrResource(byte[] data)
Initializes a new instance of the
LclrResource class. |
LclrResource(short color)
Initializes a new instance of the
LclrResource class. |
Modifier and Type | Method and Description |
---|---|
short |
getColor()
Gets the color of layer.
|
int |
getKey()
Gets the layer resource key.
|
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 |
setColor(short value)
Sets the color of layer.
|
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
public LclrResource()
Initializes a new instance of the LclrResource
class.
public LclrResource(short color)
Initializes a new instance of the LclrResource
class.
color
- The color.public LclrResource(byte[] data)
Initializes a new instance of the LclrResource
class.
data
- The resource data.PsdImageArgumentException
- Invalid Lclr Resource valuepublic final short getColor()
Gets the color of layer.
SheetColorHighlightEnum
public final void setColor(short value)
Sets the color of layer.
value
- the color of layer.SheetColorHighlightEnum
public int getSignature()
Gets the signature.
getSignature
in class LayerResource
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 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.