public class FxrpResource extends LayerResource
Class FxrpResource. The reference point of layer
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 |
---|
FxrpResource()
Initializes a new instance of the
FxrpResource class. |
FxrpResource(byte[] data)
Initializes a new instance of the
FxrpResource class. |
FxrpResource(double x,
double y)
Initializes a new instance of the
FxrpResource class. |
Modifier and Type | Method and Description |
---|---|
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.
|
double |
getX()
Gets the x of reference point
|
double |
getY()
Gets the y of reference point
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves to the specified stream container.
|
void |
setX(double value)
Sets the x of reference point
|
void |
setY(double value)
Sets the y of reference point
|
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
public FxrpResource(double x, double y)
Initializes a new instance of the FxrpResource
class.
x
- The x coordinate of reference pointy
- The y coordinate of reference pointpublic FxrpResource()
Initializes a new instance of the FxrpResource
class.
public FxrpResource(byte[] data)
Initializes a new instance of the FxrpResource
class.
With custom or unknown value
data
- The resource data.PsdImageArgumentException
- Invalid Fxrp Resource valuepublic final double getX()
Gets the x of reference point
public final void setX(double value)
Sets the x of reference point
value
- the x of reference pointpublic final double getY()
Gets the y of reference point
public final void setY(double value)
Sets the y of reference point
value
- the y of reference pointpublic 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 to the specified stream container.
save
in class LayerResource
streamContainer
- The stream container.psdVersion
- The PSD version.