public class ExpaResource extends AdjustmentLayerResource
Class ExpaResource. Resource of Exposure Adjustment Layer
AdjustmentLayerResource
,
LayerResource
Modifier and Type | Field and Description |
---|---|
static int |
TypeToolKey
The type tool info key.
|
PsbResourceSignature, ResourceSignature
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 or sets the exposure.
|
float |
getGammaCorrection()
Gets or sets the gamma.
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
float |
getOffset()
Gets or sets the offset.
|
int |
getPsdVersion()
Gets the psd version.
|
short |
getVersion()
Gets the version.
|
void |
setExposure(float value)
Gets or sets the exposure.
|
void |
setGammaCorrection(float value)
Gets or sets the gamma.
|
void |
setOffset(float value)
Gets or sets the offset.
|
void |
setVersion(short value)
Gets the version.
|
getData, getSignature, save
toString
public static final int TypeToolKey
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
Value: The version.public void setVersion(short value)
Gets the version. Default is 1
Value: The version.public final float getExposure()
Gets or sets the exposure.
Value: The exposure.public final void setExposure(float value)
Gets or sets the exposure.
Value: The exposure.public final float getOffset()
Gets or sets the offset.
Value: The offset.public final void setOffset(float value)
Gets or sets the offset.
Value: The offset.public final float getGammaCorrection()
Gets or sets the gamma.
Value: The gamma.public final void setGammaCorrection(float value)
Gets or 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