Packages

 

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

Class MixrResource

    • Field Detail

      • TYPE_TOOL_KEY

        public static final int TYPE_TOOL_KEY

        The type tool info key.

        See Also:
        Constant Field Values
    • Constructor Detail

      • MixrResource

        public MixrResource()

        Initializes a new instance of the MixrResource class. PSD format specification contains following description: 2 Version ( = 1) 2 Monochrome 20 RGB or CMYK color plus constant for the mixer settings. 4 * 2 bytes of color with 2 bytes of constant.

      • MixrResource

        public MixrResource(byte[] data)

        Initializes a new instance of the MixrResource class. PSD format specification contains following description: 2 Version ( = 1) 2 Monochrome 20 RGB or CMYK color plus constant for the mixer settings. 4 * 2 bytes of color with 2 bytes of constant.

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

      • 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.
      • getVersion

        public final short getVersion()

        Gets the version.

        Returns:
      • setVersion

        public final void setVersion(short value)

        Sets the version.

        Parameters:
        value -
      • getMonochrome

        public final boolean getMonochrome()

        Gets a value indicating whether this MixrResource is monochrome.

        Returns:
      • setMonochrome

        public final void setMonochrome(boolean value)

        Sets a value indicating whether this MixrResource is monochrome.

        Parameters:
        value -
      • getChannelInfo

        public final byte[] getChannelInfo(int channelIndex)

        Gets the channel information raw data

        Parameters:
        channelIndex - Index of the channel.
        Returns:
        Raw byte array of channel info.
        Throws:
        com.aspose.ms.System.ArgumentException - Mixr resource has no more than 4 channels. Index of First channel is 0
      • setChannelInfo

        public final void setChannelInfo(int channelIndex,
                                         byte[] value)

        Sets the channel information.

        Parameters:
        channelIndex - Index of the channel.
        value - The value.
        Throws:
        com.aspose.ms.System.ArgumentException - Mixr resource has no more than 4 channels. Index of First channel is 0