Packages

 

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

Class LevlResource

    • Field Detail

      • TYPE_TOOL_KEY

        public static final int TYPE_TOOL_KEY

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • LevlResource

        public LevlResource(byte[] bytes)

        Initializes a new instance of the LevlResource class. Supported in GrayScale, Duotone, RGB, CMYK, Lab color modes 2 bytes - Version (=2) 29 * 10 bytes - Sets of level records with 5 short integers 4 bytes - Lvls header (Starts at 292 index) 2 bytes - Version (=3) 2 bytes - Count of total level record 10 * (Total Count - 29) Zero ending of Lvls resource should be fold for four too

        Parameters:
        bytes - The bytes.
      • LevlResource

        public LevlResource()

        Initializes a new instance of the LevlResource class.

    • Method Detail

      • getVersion

        public final short getVersion()

        Gets the version. Default is 2

        Returns:
      • 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.
      • getChannel

        public final LevelChannel getChannel(int channelIndex)

        Gets the channel.

        Parameters:
        channelIndex - Index of the channel.
        Returns:
        Level Data of Channel