Packages

 

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

Class Lfx2Resource



  • public final class Lfx2Resource
    extends LayerResource

    Lfx2 resource (effects resource)

    • Field Detail

      • TYPE_TOOL_KEY

        public static final int TYPE_TOOL_KEY

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • Lfx2Resource

        public Lfx2Resource()
    • Method Detail

      • getSignature

        public int getSignature()

        Gets the layer resource signature.

        Specified by:
        getSignature in class LayerResource
      • 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
      • getPsdVersion

        public int getPsdVersion()

        Gets the minimal psd version required for layer resource. 0 indicates no restrictions.

        Specified by:
        getPsdVersion in class LayerResource
      • getData

        public byte[] getData()

        Gets the data.

        Returns:
        The data.
      • setData

        public void setData(byte[] value)

        Sets the data.

        Parameters:
        value - The data.
      • getBlendMode

        public long getBlendMode()

        Gets the blend mode.

        Returns:
        The blend mode.
      • getEffectColor

        public Color getEffectColor()

        Gets the color of the effect.

        Returns:
        The color of the effect.
      • getOpacity

        public double getOpacity()

        Gets the opacity.

        Returns:
        The opacity.
      • save

        public void save(StreamContainer streamContainer,
                         int psdVersion)

        Saves the resource to the specified stream container.

        Specified by:
        save in class LayerResource
        Parameters:
        streamContainer - The stream container to save to.
        psdVersion - The PSD version.