public final class MixrResource extends AdjustmentLayerResource
Class MixrResource. Resource of Channel Mixer Adjustment Layer
LayerResource
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_TOOL_KEY
The type tool info key.
|
PSB_RESOURCE_SIGNATURE, RESOURCE_SIGNATURE
Constructor and Description |
---|
MixrResource()
Initializes a new instance of the
MixrResource class. |
MixrResource(byte[] data)
Initializes a new instance of the
MixrResource class. |
Modifier and Type | Method and Description |
---|---|
byte[] |
getChannelInfo(int channelIndex)
Gets the channel information raw data
|
int |
getKey()
Gets the layer resource key.
|
int |
getLength()
Gets the layer resource length in bytes.
|
boolean |
getMonochrome()
Gets a value indicating whether this
MixrResource is monochrome. |
int |
getPsdVersion()
Gets the psd version.
|
short |
getVersion()
Gets the version.
|
void |
setChannelInfo(int channelIndex,
byte[] value)
Sets the channel information.
|
void |
setMonochrome(boolean value)
Sets a value indicating whether this
MixrResource is monochrome. |
void |
setVersion(short value)
Sets the version.
|
getSignature, save
toString
public static final int TYPE_TOOL_KEY
The type tool info key.
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.
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.
data
- The data of the resource.public int getKey()
Gets the layer resource key.
getKey
in class LayerResource
public int getLength()
Gets the layer resource length in bytes.
getLength
in class LayerResource
public int getPsdVersion()
Gets the psd version.
getPsdVersion
in class LayerResource
public final short getVersion()
Gets the version.
public final void setVersion(short value)
Sets the version.
value
- the version.public final boolean getMonochrome()
Gets a value indicating whether this MixrResource
is monochrome.
MixrResource
is monochrome.public final void setMonochrome(boolean value)
Sets a value indicating whether this MixrResource
is monochrome.
value
- a value indicating whether this MixrResource
is monochrome.public final byte[] getChannelInfo(int channelIndex)
Gets the channel information raw data
channelIndex
- Index of the channel.com.aspose.ms.System.ArgumentException
- Mixr resource has no more than 4 channels. Index of First channel is 0public final void setChannelInfo(int channelIndex, byte[] value)
Sets the channel information.
channelIndex
- Index of the channel.value
- The value.com.aspose.ms.System.ArgumentException
- Mixr resource has no more than 4 channels. Index of First channel is 0