public class Hue2Resource extends AdjustmentLayerResource
Class Hue2Resource. 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 |
---|
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 or sets a value indicating whether this
Hue2Resource is colorize. |
short |
getHue()
Gets or sets the master hue.
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
short |
getLightness()
Gets or sets the master lightness.
|
int |
getPsdVersion()
Gets the psd version.
|
ColorRangeHsl[] |
getRanges()
Gets the ranges of Hue/Saturation Adjustment Layer.
|
short |
getSaturation()
Gets or sets 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)
Gets or sets a value indicating whether this
Hue2Resource is colorize. |
void |
setHue(short value)
Gets or sets the master hue.
|
void |
setLightness(short value)
Gets or sets the master lightness.
|
void |
setRanges(ColorRangeHsl[] value)
Gets the ranges of Hue/Saturation Adjustment Layer.
|
void |
setSaturation(short value)
Gets or sets the master saturation.
|
void |
setVersion(short value)
Gets the version.
|
getData, getSignature
toString
public static final int TypeToolKey
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
Value: The version.public void setVersion(short value)
Gets the version. Default is 2
Value: The version.public final boolean getColorize()
Gets or sets a value indicating whether this Hue2Resource
is colorize.
true
if colorize; otherwise, false
.public final void setColorize(boolean value)
Gets or sets a value indicating whether this Hue2Resource
is colorize.
true
if colorize; otherwise, false
.public final short getHue()
Gets or sets the master hue.
Value: The master hue.public final void setHue(short value)
Gets or sets the master hue.
Value: The master hue.public final short getSaturation()
Gets or sets the master saturation.
Value: The master saturation.public final void setSaturation(short value)
Gets or sets the master saturation.
Value: The master saturation.public final short getLightness()
Gets or sets the master lightness.
Value: The master lightness.public final void setLightness(short value)
Gets or 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
Value: The ranges.public void setRanges(ColorRangeHsl[] value)
Gets the ranges of Hue/Saturation Adjustment Layer. Ranges in PS can change names if range is changed, so we should work by index
Value: The ranges.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.