Packages

 

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

Class ColorRangeHsl

  • java.lang.Object
    • com.aspose.psd.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 or sets the hue.

        Value: The hue.
      • setHue

        public final void setHue(short value)

        Gets or sets the hue.

        Value: The hue.
      • getSaturation

        public final short getSaturation()

        Gets or sets the saturation.

        Value: The saturation.
      • setSaturation

        public final void setSaturation(short value)

        Gets or sets the saturation.

        Value: The saturation.
      • getLightness

        public final short getLightness()

        Gets or sets the lightness.

        Value: The lightness.
      • setLightness

        public final void setLightness(short value)

        Gets or sets the lightness.

        Value: The lightness.
      • getMostLeftBorder

        public final short getMostLeftBorder()

        Gets or sets the most left border.

        Value: The most left border.
      • setMostLeftBorder

        public final void setMostLeftBorder(short value)

        Gets or sets the most left border.

        Value: The most left border.
      • getLeftBorder

        public final short getLeftBorder()

        Gets or sets the left border.

        Value: The left border.
      • setLeftBorder

        public final void setLeftBorder(short value)

        Gets or sets the left border.

        Value: The left border.
      • getRightBorder

        public final short getRightBorder()

        Gets or sets the right border.

        Value: The right border.
      • setRightBorder

        public final void setRightBorder(short value)

        Gets or sets the right border.

        Value: The right border.
      • getMostRightBorder

        public final short getMostRightBorder()

        Gets or sets the most right border.

        Value: The most right border.
      • setMostRightBorder

        public final void setMostRightBorder(short value)

        Gets or sets the most right border.

        Value: The most right border.
      • 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.