LspfResource Class
Contents
[
Hide
]Summary: Layer protected settings
Module: aspose.psd.fileformats.psd.layers.layerresources
Full Name: aspose.psd.fileformats.psd.layers.layerresources.LspfResource
Inheritance: LayerResource
Aspose.PSD Version: 24.12.0
Constructors
| Name | Description |
|---|---|
| LspfResource() | Initializes a new instance of the LspfResource class. |
| LspfResource(data) | Initializes a new instance of the LspfResource class. With custom or unknown value |
| LspfResource(is_transparency_protected, is_composite_protected, is_position_protected) | Initializes a new instance of the LspfResource class. |
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 1819504742 |
| is_composite_protected | bool | r/w | Gets or sets a value indicating whether this instance is composite protected. |
| is_position_protected | bool | r/w | Gets or sets a value indicating whether this instance is position protected. |
| is_transparency_protected | bool | r/w | Gets or sets a value indicating whether this instance is transparency protected. |
| key | int | r | Gets the layer resource key. |
| length | int | r | Gets the layer resource length in bytes. |
| lock_type | LayerLockType | r/w | Gets or sets the type of the lock. |
| psd_version | int | r | Gets the minimal psd version required for layer resource. 0 indicates no restrictions. |
| signature | int | r | Gets the signature. |
Methods
| Name | Description |
|---|---|
| save(stream_container, psd_version) | Saves the resource to the specified stream container. |
Constructor: LspfResource()
LspfResource()
Initializes a new instance of the LspfResource class.
Constructor: LspfResource(data)
LspfResource(data)
Initializes a new instance of the LspfResource class.
With custom or unknown value
Parameters:
| Parameter | Type | Description |
|---|---|---|
| data | byte | The resource data. |
Constructor: LspfResource(is_transparency_protected, is_composite_protected, is_position_protected)
LspfResource(is_transparency_protected, is_composite_protected, is_position_protected)
Initializes a new instance of the LspfResource class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| is_transparency_protected | bool | if set to |
| is_composite_protected | bool | if set to |
| is_position_protected | bool | if set to |
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. |