Packages

 

com.aspose.imaging.fileformats.psd.layers.layerresources

Class CurvesDiscreteManager



  • public final class CurvesDiscreteManager
    extends CurvesManager

    Manager for Curves Adjustment Layer that manipulates pixels' map

    • Constructor Detail

      • CurvesDiscreteManager

        public CurvesDiscreteManager(int maxChannelCount)

        Initializes a new instance of the CurvesDiscreteManager class.

        Parameters:
        maxChannelCount - The maximum channel count.
    • Method Detail

      • setValueInPosition

        public final void setValueInPosition(int channelIndex,
                                             byte position,
                                             byte value)

        Sets the value in position.

        Parameters:
        channelIndex - Index of the channel.
        position - The position.
        value - The value.
      • getValueInPosition

        public final byte getValueInPosition(int channelIndex,
                                             byte position)

        Gets the value in position.

        Parameters:
        channelIndex - Index of the channel.
        position - The position.
        Returns:
        Value of curve by its position
      • setToDefaultValueInPosition

        public final void setToDefaultValueInPosition(int channelIndex,
                                                      byte position)

        Sets to default value in position.

        Parameters:
        channelIndex - Index of the channel.
        position - The position.
      • setValueOfWholeChannel

        public final void setValueOfWholeChannel(int channelIndex,
                                                 byte[] channelValue)

        Sets the value of whole channel.

        Parameters:
        channelIndex - Index of the channel.
        channelValue - The channel value.
        Throws:
        PsdImageArgumentException - To set Whole Channel value you should use byte array with length = 256