public class ExpaResource extends AdjustmentLayerResource
Class ExpaResource. Resource of Exposure Adjustment Layer
AdjustmentLayerResource
,
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 |
---|
ExpaResource()
Initializes a new instance of the
ExpaResource class. |
ExpaResource(byte[] bytes)
Initializes a new instance of the
ExpaResource class. |
ExpaResource(float exposure,
float offset,
float gamma)
Initializes a new instance of the
ExpaResource class. |
Modifier and Type | Method and Description |
---|---|
float |
getExposure()
Gets the exposure.
|
float |
getGammaCorrection()
Gets the gamma.
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
float |
getOffset()
Gets the offset.
|
int |
getPsdVersion()
Gets the psd version.
|
short |
getVersion()
Gets the version.
|
void |
setExposure(float value)
Sets the exposure.
|
void |
setGammaCorrection(float value)
Sets the gamma.
|
void |
setOffset(float value)
Sets the offset.
|
getSignature, save
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
public ExpaResource()
Initializes a new instance of the ExpaResource
class.
public ExpaResource(float exposure, float offset, float gamma)
Initializes a new instance of the ExpaResource
class.
exposure
- The exposure.offset
- The offset.gamma
- The gamma.public ExpaResource(byte[] bytes)
Initializes a new instance of the ExpaResource
class.
bytes
- The bytes.PsdImageArgumentException
- Invalid Expa Resource datapublic final short getVersion()
Gets the version. Default is 1
public final float getExposure()
Gets the exposure.
public final void setExposure(float value)
Sets the exposure.
value
- the exposure.public final float getOffset()
Gets the offset.
public final void setOffset(float value)
Sets the offset.
value
- the offset.public final float getGammaCorrection()
Gets the gamma.
public final void setGammaCorrection(float value)
Sets the gamma.
value
- the gamma.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