ColorRangeHsl Class
Contents
[
Hide
]Summary: 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
Module: aspose.psd.fileformats.psd.layers.layerresources
Full Name: aspose.psd.fileformats.psd.layers.layerresources.ColorRangeHsl
Aspose.PSD Version: 24.12.0
Constructors
| Name | Description |
|---|---|
| ColorRangeHsl() | Initializes a new instance of the ColorRangeHsl class. |
| ColorRangeHsl(data) | Initializes a new instance of the ColorRangeHsl class. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| hue | short | r/w | Gets or sets the hue. |
| left_border | short | r/w | Gets or sets the left border. |
| lightness | short | r/w | Gets or sets the lightness. |
| most_left_border | short | r/w | Gets or sets the most left border. |
| most_right_border | short | r/w | Gets or sets the most right border. |
| right_border | short | r/w | Gets or sets the right border. |
| saturation | short | r/w | Gets or sets the saturation. |
Methods
| Name | Description |
|---|---|
| get_range_coefficient(hue) | Gets the range Coefficient. |
| is_hue_in_big_range(hue) | Determines whether is hue in big range. |
| is_hue_in_small_range(hue) | Determines whether hue in small range. |
| save(stream_container) | Saves data to the specified stream container. |
Constructor: ColorRangeHsl()
ColorRangeHsl()
Initializes a new instance of the ColorRangeHsl class.
Constructor: ColorRangeHsl(data)
ColorRangeHsl(data)
Initializes a new instance of the ColorRangeHsl class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| data | byte | The color range data. |
Method: get_range_coefficient(hue)
get_range_coefficient(hue)
Gets the range Coefficient.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| hue | double | The hue value. |
Returns
| Type | Description |
|---|---|
| double | Saturation range coefficient. |
Method: is_hue_in_big_range(hue)
is_hue_in_big_range(hue)
Determines whether is hue in big range.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| hue | double | The hue value. |
Returns
| Type | Description |
|---|---|
| bool |
Method: is_hue_in_small_range(hue)
is_hue_in_small_range(hue)
Determines whether hue in small range.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| hue | double | The hue value. |
Returns
| Type | Description |
|---|---|
| bool |
Method: save(stream_container)
save(stream_container)
Saves data to the specified stream container.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream_container | StreamContainer | The stream container. |