Packages

 

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

Class LyidResource

    • Field Detail

      • TypeToolKey

        public static final int TypeToolKey

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • LyidResource

        public LyidResource(int id)

        Initializes a new instance of the LyidResource class.

        Parameters:
        id - The identifier of layer.
      • LyidResource

        public LyidResource(byte[] bytes)

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

        Parameters:
        bytes - The bytes.
        Throws:
        PsdImageArgumentException - Invalid lyid Resource value
    • Method Detail

      • getValue

        public final int getValue()

        Gets the value.

        Value: The value.
      • 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
      • save

        public void save(StreamContainer streamContainer,
                         int psdVersion)

        Saves to the specified stream container.

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