Packages

 

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

Class MixrResource

    • Field Detail

      • TypeToolKey

        public static final int TypeToolKey

        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
      • getLength

        public int getLength()

        Gets the layer resource length in bytes.

        Specified by:
        getLength in class LayerResource
      • getVersion

        public final short getVersion()

        Gets or sets the version.

        Value: The version. Default value is 1
      • setVersion

        public final void setVersion(short value)

        Gets or sets the version.

        Value: The version. Default value is 1
      • getMonochrome

        public final boolean getMonochrome()

        Gets or sets a value indicating whether this MixrResource is monochrome.

        Value: true if monochrome; otherwise, false.
      • setMonochrome

        public final void setMonochrome(boolean value)

        Gets or sets a value indicating whether this MixrResource is monochrome.

        Value: true if monochrome; otherwise, false.
      • 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