Class Lfx2Resource

  • public final class Lfx2Resource
    extends LayerResource
    Lfx2 resource (effects resource)
    • Field Detail

      • TypeToolKey

        public static final int TypeToolKey
        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
      • getDescriptorVersion

        public int getDescriptorVersion()
        Gets the descriptor version.

        The descriptor version.

      • 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 or sets the data.

        The data.

      • setData

        public void setData(byte[] value)
      • getBlendMode

        public long getBlendMode()
        Gets the blend mode.

        The blend mode.

        One of the constant values of BlendMode.
      • setBlendMode

        public void setBlendMode(long value)
      • getEffectColor

        public Color getEffectColor()
        Gets the color of the effect.

        The color of the effect.

      • setEffectColor

        public void setEffectColor(Color value)
      • getOpacity

        public double getOpacity()
        Gets the opacity.

        The opacity.

      • setOpacity

        public void setOpacity(double value)
      • save

        public void save(StreamContainer streamContainer,
                         int psdVersion)
        Saves the resource to the specified stream container.
        Specified by:
        save in class LayerResource
        streamContainer - The stream container to save to.
        psdVersion - The PSD version.