Packages

 

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

Class PhflResourceVersion2



  • public class PhflResourceVersion2
    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

      • PhflResourceVersion2

        public PhflResourceVersion2()

        Initializes a new instance of the PhflResourceVersion2 class.

      • PhflResourceVersion2

        public PhflResourceVersion2(byte[] data)

        Initializes a new instance of the PhflResourceVersion2 class.

        Parameters:
        data - The data pf 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.
      • getComponentL

        public final short getComponentL()

        Gets or sets the L component of color

        Throws:
        PsdImageArgumentException - L Color must be in range from 0 to 10000 Value: The L component.
      • setComponentL

        public final void setComponentL(short value)

        Gets or sets the L component of color

        Throws:
        PsdImageArgumentException - L Color must be in range from 0 to 10000 Value: The L component.
      • getComponentA

        public final short getComponentA()

        Gets or sets the A component of color

        Throws:
        PsdImageArgumentException - A Color must be in range from -12800 to 12700 Value: The A component.
      • setComponentA

        public final void setComponentA(short value)

        Gets or sets the A component of color

        Throws:
        PsdImageArgumentException - A Color must be in range from -12800 to 12700 Value: The A component.
      • getComponentB

        public final short getComponentB()

        Gets or sets the B component

        Throws:
        PsdImageArgumentException - B Color must be in range from -12800 to 12700 Value: The B component.
      • setComponentB

        public final void setComponentB(short value)

        Gets or sets the B component

        Throws:
        PsdImageArgumentException - B Color must be in range from -12800 to 12700 Value: The B component.
      • getVersion

        public short getVersion()

        Gets the version.

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

        public void setVersion(short value)

        Gets the version.

        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.