Packages

 

com.aspose.imaging.fileformats.psd.layers

Class LayerResource

    • Field Detail

      • RESOURCE_SIGNATURE

        public static final int RESOURCE_SIGNATURE

        The common resource signature.

        See Also:
        Constant Field Values
      • PSB_RESOURCE_SIGNATURE

        public static final int PSB_RESOURCE_SIGNATURE

        The PSB-specific resource signature.

        See Also:
        Constant Field Values
    • Method Detail

      • getSignature

        public abstract int getSignature()

        Gets the layer resource signature.

      • getKey

        public abstract int getKey()

        Gets the layer resource key.

      • getLength

        public abstract int getLength()

        Gets the layer resource length in bytes.

      • getPsdVersion

        public abstract int getPsdVersion()

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

      • toString

        public String toString()

        Returns a System.String that represents this instance.

        Overrides:
        toString in class Object
        Returns:
        A System.String that represents this instance.
      • save

        public abstract void save(StreamContainer streamContainer,
                                  int psdVersion)

        Saves the resource to the specified stream container.

        Parameters:
        streamContainer - The stream container to save to.
        psdVersion - The PSD version.