public class ColorRangeHsl extends Object
Hue2Resource
has 6 color ranges where you can change HSV parameters.
Every range has 4 key points to identify range borders. And it's ColorRangeHsl
Constructor and Description |
---|
ColorRangeHsl()
Initializes a new instance of the
ColorRangeHsl class. |
ColorRangeHsl(byte[] data)
Initializes a new instance of the
ColorRangeHsl class. |
Modifier and Type | Method and Description |
---|---|
short |
getHue()
Gets the hue.
|
short |
getLeftBorder()
Gets the left border.
|
short |
getLightness()
Gets the lightness.
|
short |
getMostLeftBorder()
Gets the most left border.
|
short |
getMostRightBorder()
Gets the most right border.
|
double |
getRangeCoefficient(double hue)
Gets the range Coefficient.
|
short |
getRightBorder()
Gets the right border.
|
short |
getSaturation()
Gets the saturation.
|
boolean |
isHueInBigRange(double hue)
Determines whether is hue in big range.
|
boolean |
isHueInSmallRange(double hue)
Determines whether hue in small range.
|
void |
save(StreamContainer streamContainer)
Saves data to the specified stream container.
|
void |
setHue(short value)
Sets the hue.
|
void |
setLeftBorder(short value)
Sets the left border.
|
void |
setLightness(short value)
Sets the lightness.
|
void |
setMostLeftBorder(short value)
Sets the most left border.
|
void |
setMostRightBorder(short value)
Sets the most right border.
|
void |
setRightBorder(short value)
Sets the right border.
|
void |
setSaturation(short value)
Sets the saturation.
|
public ColorRangeHsl()
Initializes a new instance of the ColorRangeHsl
class.
public ColorRangeHsl(byte[] data)
Initializes a new instance of the ColorRangeHsl
class.
data
- The color range data.PsdImageArgumentException
- Expected length of " + this.GetType() + " is 14public final short getHue()
Gets the hue.
public final void setHue(short value)
Sets the hue.
value
- the hue.public final short getSaturation()
Gets the saturation.
public final void setSaturation(short value)
Sets the saturation.
value
- the saturation.public final short getLightness()
Gets the lightness.
public final void setLightness(short value)
Sets the lightness.
value
- the lightness.public final short getMostLeftBorder()
Gets the most left border.
public final void setMostLeftBorder(short value)
Sets the most left border.
value
- the most left border.public final short getLeftBorder()
Gets the left border.
public final void setLeftBorder(short value)
Sets the left border.
value
- the left border.public final short getRightBorder()
Gets the right border.
public final void setRightBorder(short value)
Sets the right border.
value
- the right border.public final short getMostRightBorder()
Gets the most right border.
public final void setMostRightBorder(short value)
Sets the most right border.
value
- the most right border.public final boolean isHueInBigRange(double hue)
Determines whether is hue in big range.
hue
- The hue value.true
if hue in big range; otherwise, false
.public final boolean isHueInSmallRange(double hue)
Determines whether hue in small range.
hue
- The hue value.true
if hue in small range; otherwise, false
.public final double getRangeCoefficient(double hue)
Gets the range Coefficient.
hue
- The hue value.public final void save(StreamContainer streamContainer)
Saves data to the specified stream container.
streamContainer
- The stream container.