Packages

 

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

Class UnknownResource



  • public class UnknownResource
    extends LayerResource

    The unknown resource.

    • Constructor Detail

      • UnknownResource

        public UnknownResource(int signature,
                               int key)

        Initializes a new instance of the UnknownResource class.

        Parameters:
        signature - The signature.
        key - The resource key.
    • Method Detail

      • getData

        public byte[] getData()

        Gets or sets the data.

        Value: The data.
      • setData

        public void setData(byte[] value)
      • 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
      • save

        public void save(StreamContainer streamContainer,
                         int psdVersion)

        Saves the specified stream container.

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