Packages

 

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

Class LevlResource

    • Field Detail

      • TypeToolKey

        public static final int TypeToolKey

        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

        Value: The version.
      • setVersion

        public void setVersion(short value)

        Gets the version. Default is 2

        Value: The version.
      • 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
      • getChannel

        public final LevelChannel getChannel(int channelIndex)

        Gets the channel.

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