Class LnsrResource

    • Field Detail

      • TypeToolKey

        public static final int TypeToolKey

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • LnsrResource

        public LnsrResource(int lnsrResourceType)

        Initializes a new instance of the LnsrResource class.

        lnsrResourceType - Type of the LNSR.
        PsdImageArgumentException - You can not create lnsr with Unknown type value
      • LnsrResource

        public LnsrResource(byte[] bytes)

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

        bytes - The bytes.
        Throws: - Invalid lnsr Resource value
    • Method Detail

      • getKey

        public int getKey()

        Gets the layer resource key.

        Specified by:
        getKey in class LayerResource
      • getData

        public final byte[] getData()

        Gets the raw data.

        Value: The data.
      • getValue

        public final int getValue()

        Gets the value as LnsrResourceType if corresponding enum is described. Otherwise return Unknown

        Value: The value as LnsrResourceType
      • 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 the specified stream container.

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