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
Name | Description |
---|---|
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
Name | Type | Access | Description |
---|---|---|---|
PSB_RESOURCE_SIGNATURE [static] | int | r | The PSB-specific resource signature. |
RESOURCE_SIGNATURE [static] | int | r | The common resource signature. |
TYPE_TOOL_KEY [static] | int | r | The type tool info key. |
key | int | r | Gets the layer resource key. |
length | int | r | Gets the layer resource length in bytes. |
psd_version | int | r | Gets the psd version. |
signature | int | r | Gets the signature. |
version | short | r | Gets the version. Default is 2 |
Methods
Name | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
bytes | byte | The bytes. |
Method: get_channel(channel_index)
get_channel(channel_index)
Gets the channel.
Parameters:
Parameter | Type | Description |
---|---|---|
channel_index | int | Index of the channel. |
Returns
Type | Description |
---|---|
LevelChannel | Level Data of Channel |
Method: save(stream_container, psd_version)
save(stream_container, psd_version)
Saves the resource to the specified stream container.
Parameters:
Parameter | Type | Description |
---|---|---|
stream_container | StreamContainer | The stream container to save to. |
psd_version | int | The PSD version. |