public final class MixrResource extends AdjustmentLayerResource
Class MixrResource. Resource of Channel Mixer Adjustment Layer
LayerResource
Modifier and Type | Field and Description |
---|---|
static int |
TypeToolKey
The type tool info key.
|
PsbResourceSignature, ResourceSignature
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 or sets a value indicating whether this
MixrResource is monochrome. |
int |
getPsdVersion()
Gets the psd version.
|
short |
getVersion()
Gets or sets the version.
|
void |
setChannelInfo(int channelIndex,
byte[] value)
Sets the channel information.
|
void |
setMonochrome(boolean value)
Gets or sets a value indicating whether this
MixrResource is monochrome. |
void |
setVersion(short value)
Gets or sets the version.
|
getData, getSignature, save
toString
public static final int TypeToolKey
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 or sets the version.
Value: The version. Default value is 1public final void setVersion(short value)
Gets or sets the version.
Value: The version. Default value is 1public final boolean getMonochrome()
Gets or sets a value indicating whether this MixrResource
is monochrome.
true
if monochrome; otherwise, false
.public final void setMonochrome(boolean value)
Gets or sets a value indicating whether this MixrResource
is monochrome.
true
if monochrome; otherwise, false
.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