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 or sets the hue.
|
short |
getLeftBorder()
Gets or sets the left border.
|
short |
getLightness()
Gets or sets the lightness.
|
short |
getMostLeftBorder()
Gets or sets the most left border.
|
short |
getMostRightBorder()
Gets or sets the most right border.
|
double |
getRangeCoefficient(double hue)
Gets the range Coefficient.
|
short |
getRightBorder()
Gets or sets the right border.
|
short |
getSaturation()
Gets or sets 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)
Gets or sets the hue.
|
void |
setLeftBorder(short value)
Gets or sets the left border.
|
void |
setLightness(short value)
Gets or sets the lightness.
|
void |
setMostLeftBorder(short value)
Gets or sets the most left border.
|
void |
setMostRightBorder(short value)
Gets or sets the most right border.
|
void |
setRightBorder(short value)
Gets or sets the right border.
|
void |
setSaturation(short value)
Gets or 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 or sets the hue.
Value: The hue.public final void setHue(short value)
Gets or sets the hue.
Value: The hue.public final short getSaturation()
Gets or sets the saturation.
Value: The saturation.public final void setSaturation(short value)
Gets or sets the saturation.
Value: The saturation.public final short getLightness()
Gets or sets the lightness.
Value: The lightness.public final void setLightness(short value)
Gets or sets the lightness.
Value: The lightness.public final short getMostLeftBorder()
Gets or sets the most left border.
Value: The most left border.public final void setMostLeftBorder(short value)
Gets or sets the most left border.
Value: The most left border.public final short getLeftBorder()
Gets or sets the left border.
Value: The left border.public final void setLeftBorder(short value)
Gets or sets the left border.
Value: The left border.public final short getRightBorder()
Gets or sets the right border.
Value: The right border.public final void setRightBorder(short value)
Gets or sets the right border.
Value: The right border.public final short getMostRightBorder()
Gets or sets the most right border.
Value: The most right border.public final void setMostRightBorder(short value)
Gets or 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.