public final class Lfx2Resource extends LayerResource
Lfx2 resource (effects resource)
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_TOOL_KEY
The type tool info key.
|
PSB_RESOURCE_SIGNATURE, RESOURCE_SIGNATURE
Constructor and Description |
---|
Lfx2Resource() |
Modifier and Type | Method and Description |
---|---|
long |
getBlendMode()
Gets the blend mode.
|
byte[] |
getData()
Gets the data.
|
Color |
getEffectColor()
Gets the color of the effect.
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
double |
getOpacity()
Gets the opacity.
|
int |
getPsdVersion()
Gets the minimal psd version required for layer resource.
|
int |
getSignature()
Gets the layer resource signature.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource to the specified stream container.
|
void |
setData(byte[] value)
Sets the data.
|
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
public int getSignature()
Gets the layer resource 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 minimal psd version required for layer resource. 0 indicates no restrictions.
getPsdVersion
in class LayerResource
public byte[] getData()
Gets the data.
public void setData(byte[] value)
Sets the data.
value
- The data.public long getBlendMode()
Gets the blend mode.
public Color getEffectColor()
Gets the color of the effect.
public double getOpacity()
Gets the opacity.
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.