Packages

 

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

Class ExpaResource

    • Field Detail

      • TYPE_TOOL_KEY

        public static final int TYPE_TOOL_KEY

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • ExpaResource

        public ExpaResource()

        Initializes a new instance of the ExpaResource class.

      • ExpaResource

        public ExpaResource(float exposure,
                            float offset,
                            float gamma)

        Initializes a new instance of the ExpaResource class.

        Parameters:
        exposure - The exposure.
        offset - The offset.
        gamma - The gamma.
      • ExpaResource

        public ExpaResource(byte[] bytes)

        Initializes a new instance of the ExpaResource class.

        Parameters:
        bytes - The bytes.
        Throws:
        PsdImageArgumentException - Invalid Expa Resource data
    • Method Detail

      • getVersion

        public final short getVersion()

        Gets the version. Default is 1

        Returns:
        the version. Default is 1
      • getExposure

        public final float getExposure()

        Gets the exposure.

        Returns:
        the exposure.
      • setExposure

        public final void setExposure(float value)

        Sets the exposure.

        Parameters:
        value - the exposure.
      • getOffset

        public final float getOffset()

        Gets the offset.

        Returns:
        the offset.
      • setOffset

        public final void setOffset(float value)

        Sets the offset.

        Parameters:
        value - the offset.
      • getGammaCorrection

        public final float getGammaCorrection()

        Gets the gamma.

        Returns:
        the gamma.
      • setGammaCorrection

        public final void setGammaCorrection(float value)

        Sets the gamma.

        Parameters:
        value - the gamma.
      • getKey

        public int getKey()

        Gets the layer resource key.

        Specified by:
        getKey in class LayerResource
        Returns:
        the layer resource key.
      • getLength

        public int getLength()

        Gets the layer resource length in bytes.

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

        public int getPsdVersion()

        Gets the psd version.

        Specified by:
        getPsdVersion in class LayerResource
        Returns:
        the psd version.