Packages

 

com.aspose.psd.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.

        Value: The color space.
      • setColorSpace

        public void setColorSpace(short value)

        Gets the color space.

        Value: The color space.
      • getColorX

        public final float getColorX()

        Gets or sets the X color.

        Value: The X color.
      • setColorX

        public final void setColorX(float value)

        Gets or sets the X color.

        Value: The X color.
      • getColorY

        public final float getColorY()

        Gets or sets the Y color.

        Value: The Y color.
      • setColorY

        public final void setColorY(float value)

        Gets or sets the Y color.

        Value: The Y color.
      • getColorZ

        public final float getColorZ()

        Gets or sets the Z color.

        Value: The Z color.
      • setColorZ

        public final void setColorZ(float value)

        Gets or sets the Z color.

        Value: The Z color.
      • getVersion

        public short getVersion()

        Gets the version. Default is 2 or 3

        Specified by:
        getVersion in class PhflResource
        Throws:
        com.aspose.ms.System.NotImplementedException - Value: The version.
      • setVersion

        public void setVersion(short value)

        Gets the version. Default is 2 or 3

        Specified by:
        setVersion in class PhflResource
        Throws:
        com.aspose.ms.System.NotImplementedException - Value: The version.
      • getKey

        public int getKey()

        Gets the layer resource key.

        Overrides:
        getKey in class PhflResource
      • getLength

        public int getLength()

        Gets the layer resource length in bytes.

        Specified by:
        getLength in class LayerResource
      • 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.