public class Hue2Resource extends AdjustmentLayerResource
Class Hue2Resource. 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 |
---|
Hue2Resource()
Initializes a new instance of the
Hue2Resource class. |
Hue2Resource(byte[] data)
Initializes a new instance of the
Hue2Resource class. |
Modifier and Type | Method and Description |
---|---|
boolean |
getColorize()
Gets a value indicating whether this
Hue2Resource is colorize. |
short |
getHue()
Gets the master hue.
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
short |
getLightness()
Gets the master lightness.
|
int |
getPsdVersion()
Gets the psd version.
|
ColorRangeHsl[] |
getRanges()
Gets the ranges of Hue/Saturation Adjustment Layer.
|
short |
getSaturation()
Gets the master saturation.
|
short |
getVersion()
Gets the version.
|
void |
save(StreamContainer streamContainer,
int psdVersion)
Saves the resource to the specified stream container.
|
void |
setColorize(boolean value)
Sets a value indicating whether this
Hue2Resource is colorize. |
void |
setHue(short value)
Sets the master hue.
|
void |
setLightness(short value)
Sets the master lightness.
|
void |
setSaturation(short value)
Sets the master saturation.
|
getSignature
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
public Hue2Resource()
Initializes a new instance of the Hue2Resource
class.
public Hue2Resource(byte[] data)
Initializes a new instance of the Hue2Resource
class.
data
- The data of the resource.PsdImageArgumentException
- Invalid Hue2 Resource datapublic final short getVersion()
Gets the version. Default is 2
public final boolean getColorize()
Gets a value indicating whether this Hue2Resource
is colorize.
Hue2Resource
is colorize.public final void setColorize(boolean value)
Sets a value indicating whether this Hue2Resource
is colorize.
value
- a value indicating whether this Hue2Resource
is colorize.public final short getHue()
Gets the master hue.
public final void setHue(short value)
Sets the master hue.
value
- the master hue.public final short getSaturation()
Gets the master saturation.
public final void setSaturation(short value)
Sets the master saturation.
value
- the master saturation.public final short getLightness()
Gets the master lightness.
public final void setLightness(short value)
Sets the master lightness.
value
- the master lightness.public final ColorRangeHsl[] getRanges()
Gets the ranges of Hue/Saturation Adjustment Layer. Ranges in PS can change names if range is changed, so we should work by index
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 AdjustmentLayerResource
streamContainer
- The stream container to save to.psdVersion
- The PSD version.