public class IopaResource extends LayerResource
Class IopaResource. This resource contains information about the fill opacity property from the layer style form
LayerResource
Modifier and Type | Field and Description |
---|---|
static int |
TypeToolKey
The type tool info key.
|
PsbResourceSignature, ResourceSignature
Constructor and Description |
---|
IopaResource()
Initializes a new instance of the
IopaResource class. |
IopaResource(byte[] data)
Initializes a new instance of the
IopaResource class. |
Modifier and Type | Method and Description |
---|---|
byte |
getFillOpacity()
Gets or sets the fill opacity.
|
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 |
setFillOpacity(byte value)
Gets or sets the fill opacity.
|
toString
public static final int TypeToolKey
The type tool info key.
public IopaResource()
Initializes a new instance of the IopaResource
class.
public IopaResource(byte[] data)
Initializes a new instance of the IopaResource
class.
data
- The raw byte data.PsdImageArgumentException
- Invalid iOpa Resource data. Expected length of iOpaResource is 4public final byte getFillOpacity()
Gets or sets the fill opacity.
Value: The fill opacity.public final void setFillOpacity(byte value)
Gets or sets the fill opacity.
Value: The fill opacity.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.