CurvesDiscreteManager Class

Summary: Manager for Curves Adjustment Layer that manipulates pixels’ map

Module: aspose.psd.fileformats.psd.layers.layerresources

Full Name: aspose.psd.fileformats.psd.layers.layerresources.CurvesDiscreteManager

Inheritance: CurvesManager

Aspose.PSD Version: 24.4.0

Properties

NameTypeAccessDescription
max_channel_countintrGets the maximum channel count.

Methods

NameDescription
get_value_in_position(channel_index, position)Gets the value in position.
set_to_default_value_in_position(channel_index, position)Sets to default value in position.
set_value_in_position(channel_index, position, value)Sets the value in position.
set_value_of_whole_channel(channel_index, channel_value)Sets the value of whole channel.

Method: get_value_in_position(channel_index, position)

 get_value_in_position(channel_index, position) 

Gets the value in position.

Parameters:

ParameterTypeDescription
channel_indexintIndex of the channel.
positionbyteThe position.

Returns

TypeDescription
byteValue of curve by its position

Method: set_to_default_value_in_position(channel_index, position)

 set_to_default_value_in_position(channel_index, position) 

Sets to default value in position.

Parameters:

ParameterTypeDescription
channel_indexintIndex of the channel.
positionbyteThe position.

Method: set_value_in_position(channel_index, position, value)

 set_value_in_position(channel_index, position, value) 

Sets the value in position.

Parameters:

ParameterTypeDescription
channel_indexintIndex of the channel.
positionbyteThe position.
valuebyteThe value.

Method: set_value_of_whole_channel(channel_index, channel_value)

 set_value_of_whole_channel(channel_index, channel_value) 

Sets the value of whole channel.

Parameters:

ParameterTypeDescription
channel_indexintIndex of the channel.
channel_valuebyteThe channel value.