Packages

 

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

Class LspfResource



  • public class LspfResource
    extends LayerResource

    Layer protected settings

    • Field Detail

      • TypeToolKey

        public static final int TypeToolKey

        The type tool info key 1819504742

        See Also:
        Constant Field Values
    • Constructor Detail

      • LspfResource

        public LspfResource(byte[] data)

        Initializes a new instance of the LspfResource class. With custom or unknown value

        Parameters:
        data - The resource data.
        Throws:
        PsdImageArgumentException - Invalid Lspf Resource data length
      • LspfResource

        public LspfResource(boolean isTransparencyProtected,
                            boolean isCompositeProtected,
                            boolean isPositionProtected)

        Initializes a new instance of the LspfResource class.

        Parameters:
        isTransparencyProtected - if set to true [is transparency protected].
        isCompositeProtected - if set to true [is composite protected].
        isPositionProtected - if set to true [is position protected].
      • LspfResource

        public LspfResource()

        Initializes a new instance of the LspfResource class.

    • Method Detail

      • isTransparencyProtected

        public final boolean isTransparencyProtected()

        Gets or sets a value indicating whether this instance is transparency protected.

        Value: true if this instance is transparency protected; otherwise, false.
      • setTransparencyProtected

        public final void setTransparencyProtected(boolean value)

        Gets or sets a value indicating whether this instance is transparency protected.

        Value: true if this instance is transparency protected; otherwise, false.
      • isCompositeProtected

        public final boolean isCompositeProtected()

        Gets or sets a value indicating whether this instance is composite protected.

        Value: true if this instance is composite protected; otherwise, false.
      • setCompositeProtected

        public final void setCompositeProtected(boolean value)

        Gets or sets a value indicating whether this instance is composite protected.

        Value: true if this instance is composite protected; otherwise, false.
      • isPositionProtected

        public final boolean isPositionProtected()

        Gets or sets a value indicating whether this instance is position protected.

        Value: true if this instance is position protected; otherwise, false.
      • setPositionProtected

        public final void setPositionProtected(boolean value)

        Gets or sets a value indicating whether this instance is position protected.

        Value: true if this instance is position protected; otherwise, false.
      • 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
      • getLockType

        public final int getLockType()

        Gets or sets the type of the lock.

        Value: The type of the lock.
      • setLockType

        public final void setLockType(int value)

        Gets or sets the type of the lock.

        Value: The type of the lock.
      • 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.