LevlResource Class

Summary: Class LevlResource. Resource of Exposure Adjustment Layer

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

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

Inheritance: AdjustmentLayerResource

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
LevlResource()Initializes a new instance of the LevlResource class.
LevlResource(bytes)Initializes a new instance of the LevlResource class.
Supported in GrayScale, Duotone, RGB, CMYK, Lab color modes
2 bytes - Version (=2)
29 * 10 bytes - Sets of level records with 5 short integers
4 bytes - Lvls header (Starts at 292 index)
2 bytes - Version (=3)
2 bytes - Count of total level record
10 * (Total Count - 29)
Zero ending of Lvls resource should be fold for four too

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.
psd_versionintrGets the psd version.
signatureintrGets the signature.
versionshortrGets the version. Default is 2

Methods

NameDescription
get_channel(channel_index)Gets the channel.
save(stream_container, psd_version)Saves the resource to the specified stream container.

Constructor: LevlResource()

 LevlResource() 

Initializes a new instance of the LevlResource class.

Constructor: LevlResource(bytes)

 LevlResource(bytes) 

Initializes a new instance of the LevlResource class.
Supported in GrayScale, Duotone, RGB, CMYK, Lab color modes
2 bytes - Version (=2)
29 * 10 bytes - Sets of level records with 5 short integers
4 bytes - Lvls header (Starts at 292 index)
2 bytes - Version (=3)
2 bytes - Count of total level record
10 * (Total Count - 29)
Zero ending of Lvls resource should be fold for four too

Parameters:

ParameterTypeDescription
bytesbyteThe bytes.

Method: get_channel(channel_index)

 get_channel(channel_index) 

Gets the channel.

Parameters:

ParameterTypeDescription
channel_indexintIndex of the channel.

Returns

TypeDescription
LevelChannelLevel Data of Channel

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.