ColorRangeHsl Class

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.4.0

Constructors

NameDescription
ColorRangeHsl()Initializes a new instance of the ColorRangeHsl class.
ColorRangeHsl(data)Initializes a new instance of the ColorRangeHsl class.

Properties

NameTypeAccessDescription
hueshortr/wGets or sets the hue.
left_bordershortr/wGets or sets the left border.
lightnessshortr/wGets or sets the lightness.
most_left_bordershortr/wGets or sets the most left border.
most_right_bordershortr/wGets or sets the most right border.
right_bordershortr/wGets or sets the right border.
saturationshortr/wGets or sets the saturation.

Methods

NameDescription
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:

ParameterTypeDescription
databyteThe color range data.

Method: get_range_coefficient(hue)

 get_range_coefficient(hue) 

Gets the range Coefficient.

Parameters:

ParameterTypeDescription
huedoubleThe hue value.

Returns

TypeDescription
doubleSaturation range coefficient.

Method: is_hue_in_big_range(hue)

 is_hue_in_big_range(hue) 

Determines whether is hue in big range.

Parameters:

ParameterTypeDescription
huedoubleThe hue value.

Returns

TypeDescription
booltrue if hue in big range; otherwise, false.

Method: is_hue_in_small_range(hue)

 is_hue_in_small_range(hue) 

Determines whether hue in small range.

Parameters:

ParameterTypeDescription
huedoubleThe hue value.

Returns

TypeDescription
booltrue if hue in small range; otherwise, false.

Method: save(stream_container)

 save(stream_container) 

Saves data to the specified stream container.

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container.