Packages

 

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

Class ColorRangeHsl

  • java.lang.Object
    • com.aspose.imaging.fileformats.psd.layers.layerresources.ColorRangeHsl


  • public class ColorRangeHsl
    extends Object

    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

    • Constructor Detail

      • ColorRangeHsl

        public ColorRangeHsl()

        Initializes a new instance of the ColorRangeHsl class.

      • ColorRangeHsl

        public ColorRangeHsl(byte[] data)

        Initializes a new instance of the ColorRangeHsl class.

        Parameters:
        data - The color range data.
        Throws:
        PsdImageArgumentException - Expected length of " + this.GetType() + " is 14
    • Method Detail

      • getHue

        public final short getHue()

        Gets the hue.

        Returns:
      • setHue

        public final void setHue(short value)

        Sets the hue.

        Parameters:
        value -
      • getSaturation

        public final short getSaturation()

        Gets the saturation.

        Returns:
      • setSaturation

        public final void setSaturation(short value)

        Sets the saturation.

        Parameters:
        value -
      • getLightness

        public final short getLightness()

        Gets the lightness.

        Returns:
      • setLightness

        public final void setLightness(short value)

        Sets the lightness.

        Parameters:
        value -
      • getMostLeftBorder

        public final short getMostLeftBorder()

        Gets the most left border.

        Returns:
      • setMostLeftBorder

        public final void setMostLeftBorder(short value)

        Sets the most left border.

        Parameters:
        value -
      • getLeftBorder

        public final short getLeftBorder()

        Gets the left border.

        Returns:
      • setLeftBorder

        public final void setLeftBorder(short value)

        Sets the left border.

        Parameters:
        value -
      • getRightBorder

        public final short getRightBorder()

        Gets the right border.

        Returns:
      • setRightBorder

        public final void setRightBorder(short value)

        Sets the right border.

        Parameters:
        value -
      • getMostRightBorder

        public final short getMostRightBorder()

        Gets the most right border.

        Returns:
      • setMostRightBorder

        public final void setMostRightBorder(short value)

        Sets the most right border.

        Parameters:
        value -
      • isHueInBigRange

        public final boolean isHueInBigRange(double hue)

        Determines whether is hue in big range.

        Parameters:
        hue - The hue value.
        Returns:
        true if hue in big range; otherwise, false.
      • isHueInSmallRange

        public final boolean isHueInSmallRange(double hue)

        Determines whether hue in small range.

        Parameters:
        hue - The hue value.
        Returns:
        true if hue in small range; otherwise, false.
      • getRangeCoefficient

        public final double getRangeCoefficient(double hue)

        Gets the range Coefficient.

        Parameters:
        hue - The hue value.
        Returns:
        Saturation range coefficient.
      • save

        public final void save(StreamContainer streamContainer)

        Saves data to the specified stream container.

        Parameters:
        streamContainer - The stream container.