Packages

 

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

Class PhflResourceVersion3



  • public class PhflResourceVersion3
    extends PhflResource

    Class PhflResource. Resource of Exposure Adjustment Layer 2 Version ( = 3 ) or ( = 2 ) 12 4 bytes each for XYZ color(Only in Version 3) 10 2 bytes color space followed by 4 * 2 bytes color component(Only in Version 2) 4 Density 1 Preserve Luminosity

    See Also:
    AdjustmentLayerResource, LayerResource
    • Constructor Detail

      • PhflResourceVersion3

        public PhflResourceVersion3()

        Initializes a new instance of the PhflResourceVersion3 class.

        Throws:
        com.aspose.ms.System.ArgumentException - Supported only version 2 and 3
      • PhflResourceVersion3

        public PhflResourceVersion3(byte[] data)

        Initializes a new instance of the PhflResourceVersion3 class.

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

      • getColorSpace

        public final short getColorSpace()

        Gets the color space.

        Returns:
      • getColorX

        public final float getColorX()

        Gets the X color.

        Returns:
      • setColorX

        public final void setColorX(float value)

        Sets the X color.

        Parameters:
        value -
      • getColorY

        public final float getColorY()

        Gets the Y color.

        Returns:
      • setColorY

        public final void setColorY(float value)

        Sets the Y color.

        Parameters:
        value -
      • getColorZ

        public final float getColorZ()

        Gets the Z color.

        Returns:
      • setColorZ

        public final void setColorZ(float value)

        Sets the Z color.

        Parameters:
        value -
      • getVersion

        public short getVersion()

        Gets the version. Default is 2 or 3

        Specified by:
        getVersion in class PhflResource
        Returns:
        Throws:
        com.aspose.ms.System.NotImplementedException
      • getKey

        public int getKey()

        Gets the layer resource key.

        Overrides:
        getKey in class PhflResource
        Returns:
        the layer resource key.
      • getPsdVersion

        public int getPsdVersion()

        Gets the psd version.

        Overrides:
        getPsdVersion in class PhflResource
        Returns:
        the psd version.
      • getLength

        public int getLength()

        Gets the layer resource length in bytes.

        Specified by:
        getLength in class LayerResource
        Returns:
        the layer resource length in bytes.
      • setRgbColor

        public void setRgbColor(Color color)

        Sets the RGB color.

        Specified by:
        setRgbColor in class PhflResource
        Parameters:
        color - The color.
      • 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.