Packages

 

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

Class ShmdResource

    • Field Detail

      • TYPE_TOOL_KEY

        public static final int TYPE_TOOL_KEY

        The type tool info key.

        See Also:
        Constant Field Values
      • SUB_RESOURCE_HEADER_LENGTH

        public static final int SUB_RESOURCE_HEADER_LENGTH

        The sub resource header length

        See Also:
        Constant Field Values
    • Constructor Detail

      • ShmdResource

        public ShmdResource()

        Initializes a new instance of the ShmdResource class.

      • ShmdResource

        public ShmdResource(byte[] data)

        Initializes a new instance of the ShmdResource class.

        Parameters:
        data - The data of the resource.
    • Method Detail

      • getLayerCreatedDateTime

        public final Date getLayerCreatedDateTime()

        Gets the layer created time. If Layer created time not specified then returns new DateTime(0)

        Returns:
      • setLayerCreatedDateTime

        public final void setLayerCreatedDateTime(Date value)

        Sets the layer created time. If Layer created time not specified then returns new DateTime(0)

        Parameters:
        value -
      • getSignature

        public int getSignature()

        Gets the signature.

        Specified by:
        getSignature in class LayerResource
        Returns:
        the 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 psd version.

        Specified by:
        getPsdVersion in class LayerResource
        Returns:
        the psd version.
      • 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.