Packages

 

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

Class LspfResource



  • public class LspfResource
    extends LayerResource

    Layer protected settings

    • Field Detail

      • TYPE_TOOL_KEY

        public static final int TYPE_TOOL_KEY

        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 a value indicating whether this instance is transparency protected.

        Value: true if this instance is transparency protected; otherwise, false.
        Returns:
        a value indicating whether this instance is transparency protected.
      • setTransparencyProtected

        public final void setTransparencyProtected(boolean value)

        Sets a value indicating whether this instance is transparency protected.

        Value: true if this instance is transparency protected; otherwise, false.
        Parameters:
        value - a value indicating whether this instance is transparency protected.
      • isCompositeProtected

        public final boolean isCompositeProtected()

        Gets a value indicating whether this instance is composite protected.

        Value: true if this instance is composite protected; otherwise, false.
        Returns:
        a value indicating whether this instance is composite protected.
      • setCompositeProtected

        public final void setCompositeProtected(boolean value)

        Sets a value indicating whether this instance is composite protected.

        Value: true if this instance is composite protected; otherwise, false.
        Parameters:
        value - a value indicating whether this instance is composite protected.
      • isPositionProtected

        public final boolean isPositionProtected()

        Gets a value indicating whether this instance is position protected.

        Value: true if this instance is position protected; otherwise, false.
        Returns:
        a value indicating whether this instance is position protected.
      • setPositionProtected

        public final void setPositionProtected(boolean value)

        Sets a value indicating whether this instance is position protected.

        Value: true if this instance is position protected; otherwise, false.
        Parameters:
        value - a value indicating whether this instance is position protected.
      • getSignature

        public int getSignature()

        Gets the layer resource signature.

        Specified by:
        getSignature in class LayerResource
        Returns:
        the layer resource signature.
      • 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 minimal psd version required for layer resource. 0 indicates no restrictions.

        Specified by:
        getPsdVersion in class LayerResource
        Returns:
        the minimal psd version required for layer resource.
      • getLockType

        public final int getLockType()

        Gets the type of the lock.

        Value: The type of the lock.
        Returns:
        the type of the lock.
      • setLockType

        public final void setLockType(int value)

        Sets the type of the lock.

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