LspfResource Class

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.4.0

Constructors

NameDescription
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

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 1819504742
is_composite_protectedboolr/wGets or sets a value indicating whether this instance is composite protected.
is_position_protectedboolr/wGets or sets a value indicating whether this instance is position protected.
is_transparency_protectedboolr/wGets or sets a value indicating whether this instance is transparency protected.
keyintrGets the layer resource key.
lengthintrGets the layer resource length in bytes.
lock_typeLayerLockTyper/wGets or sets the type of the lock.
psd_versionintrGets the minimal psd version required for layer resource. 0 indicates no restrictions.
signatureintrGets the layer resource signature.

Methods

NameDescription
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:

ParameterTypeDescription
databyteThe 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:

ParameterTypeDescription
is_transparency_protectedboolif set to true [is transparency protected].
is_composite_protectedboolif set to true [is composite protected].
is_position_protectedboolif set to true [is position protected].

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.