Packages

 

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

Class Hue2Resource

    • Field Detail

      • TypeToolKey

        public static final int TypeToolKey

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • Hue2Resource

        public Hue2Resource()

        Initializes a new instance of the Hue2Resource class.

      • Hue2Resource

        public Hue2Resource(byte[] data)

        Initializes a new instance of the Hue2Resource class.

        Parameters:
        data - The data of the resource.
        Throws:
        PsdImageArgumentException - Invalid Hue2 Resource data
    • Method Detail

      • getVersion

        public final short getVersion()

        Gets the version. Default is 2

        Value: The version.
      • setVersion

        public void setVersion(short value)

        Gets the version. Default is 2

        Value: The version.
      • getColorize

        public final boolean getColorize()

        Gets or sets a value indicating whether this Hue2Resource is colorize.

        Value: true if colorize; otherwise, false.
      • setColorize

        public final void setColorize(boolean value)

        Gets or sets a value indicating whether this Hue2Resource is colorize.

        Value: true if colorize; otherwise, false.
      • getHue

        public final short getHue()

        Gets or sets the master hue.

        Value: The master hue.
      • setHue

        public final void setHue(short value)

        Gets or sets the master hue.

        Value: The master hue.
      • getSaturation

        public final short getSaturation()

        Gets or sets the master saturation.

        Value: The master saturation.
      • setSaturation

        public final void setSaturation(short value)

        Gets or sets the master saturation.

        Value: The master saturation.
      • getLightness

        public final short getLightness()

        Gets or sets the master lightness.

        Value: The master lightness.
      • setLightness

        public final void setLightness(short value)

        Gets or sets the master lightness.

        Value: The master lightness.
      • getRanges

        public final ColorRangeHsl[] getRanges()

        Gets the ranges of Hue/Saturation Adjustment Layer. Ranges in PS can change names if range is changed, so we should work by index

        Value: The ranges.
      • setRanges

        public void setRanges(ColorRangeHsl[] value)

        Gets the ranges of Hue/Saturation Adjustment Layer. Ranges in PS can change names if range is changed, so we should work by index

        Value: The ranges.
      • getKey

        public int getKey()

        Gets the layer resource key.

        Specified by:
        getKey in class LayerResource
      • getLength

        public int getLength()

        Gets the layer resource length in bytes.

        Specified by:
        getLength in class LayerResource
      • save

        public void save(StreamContainer streamContainer,
                         int psdVersion)

        Saves the resource to the specified stream container.

        Overrides:
        save in class AdjustmentLayerResource
        Parameters:
        streamContainer - The stream container to save to.
        psdVersion - The PSD version.