MixrResource Class

Summary: Class MixrResource. Resource of Channel Mixer Adjustment Layer

Module: aspose.psd.fileformats.psd.layers.layerresources

Full Name: aspose.psd.fileformats.psd.layers.layerresources.MixrResource

Inheritance: AdjustmentLayerResource

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
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(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.

Properties

NameTypeAccessDescription
PSB_RESOURCE_SIGNATURE [static]intrThe PSB-specific resource signature.
RESOURCE_SIGNATURE [static]intrThe common resource signature.
TYPE_TOOL_KEY [static]intrThe type tool info key.
keyintrGets the layer resource key.
lengthintrGets the layer resource length in bytes.
monochromeboolr/wGets or sets a value indicating whether this MixrResource is monochrome.
psd_versionintrGets the psd version.
signatureintrGets the signature.
versionshortr/wGets or sets the version.

Methods

NameDescription
get_channel_info(channel_index)Gets the channel information raw data
save(stream_container, psd_version)Saves the resource to the specified stream container.
set_channel_info(channel_index, value)Sets the channel information.

Constructor: MixrResource()

 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.

Constructor: MixrResource(data)

 MixrResource(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:

ParameterTypeDescription
databyteThe data of the resource.

Method: get_channel_info(channel_index)

 get_channel_info(channel_index) 

Gets the channel information raw data

Parameters:

ParameterTypeDescription
channel_indexintIndex of the channel.

Returns

TypeDescription
byteRaw byte array of channel info.

Method: save(stream_container, psd_version)

 save(stream_container, psd_version) 

Saves the resource to the specified stream container.

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container to save to.
psd_versionintThe PSD version.

Method: set_channel_info(channel_index, value)

 set_channel_info(channel_index, value) 

Sets the channel information.

Parameters:

ParameterTypeDescription
channel_indexintIndex of the channel.
valuebyteThe value.