public final class CurvesDiscreteManager extends CurvesManager
Manager for Curves Adjustment Layer that manipulates pixels' map
Constructor and Description |
---|
CurvesDiscreteManager(int maxChannelCount)
Initializes a new instance of the
CurvesDiscreteManager class. |
Modifier and Type | Method and Description |
---|---|
byte |
getValueInPosition(int channelIndex,
byte position)
Gets the value in position.
|
void |
setToDefaultValueInPosition(int channelIndex,
byte position)
Sets to default value in position.
|
void |
setValueInPosition(int channelIndex,
byte position,
byte value)
Sets the value in position.
|
void |
setValueOfWholeChannel(int channelIndex,
byte[] channelValue)
Sets the value of whole channel.
|
getMaxChannelCount
public CurvesDiscreteManager(int maxChannelCount)
Initializes a new instance of the CurvesDiscreteManager
class.
maxChannelCount
- The maximum channel count.public final void setValueInPosition(int channelIndex, byte position, byte value)
Sets the value in position.
channelIndex
- Index of the channel.position
- The position.value
- The value.public final byte getValueInPosition(int channelIndex, byte position)
Gets the value in position.
channelIndex
- Index of the channel.position
- The position.public final void setToDefaultValueInPosition(int channelIndex, byte position)
Sets to default value in position.
channelIndex
- Index of the channel.position
- The position.public final void setValueOfWholeChannel(int channelIndex, byte[] channelValue)
Sets the value of whole channel.
channelIndex
- Index of the channel.channelValue
- The channel value.PsdImageArgumentException
- To set Whole Channel value you should use byte array with length = 256