LnsrResource Class

Summary: Class lnsrResource.

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

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

Inheritance: LayerResource

Aspose.PSD Version: 24.4.0

Constructors

NameDescription
LnsrResource(bytes)Initializes a new instance of the LnsrResource class.
With custom or unknown value
LnsrResource(lnsr_resource_type)Initializes a new instance of the LnsrResource 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.
databyterGets the raw data.
keyintrGets the layer resource key.
lengthintrGets the layer resource length in bytes.
psd_versionintrGets the psd version.
signatureintrGets the signature.
valueLnsrResourceTyperGets the value as LnsrResourceType if corresponding enum is described.
Otherwise return Unknown

Methods

NameDescription
save(stream_container, psd_version)Saves the specified stream container.

Constructor: LnsrResource(bytes)

 LnsrResource(bytes) 

Initializes a new instance of the LnsrResource class.
With custom or unknown value

Parameters:

ParameterTypeDescription
bytesbyteThe bytes.

Constructor: LnsrResource(lnsr_resource_type)

 LnsrResource(lnsr_resource_type) 

Initializes a new instance of the LnsrResource class.

Parameters:

ParameterTypeDescription
lnsr_resource_typeLnsrResourceTypeType of the LNSR.

Method: save(stream_container, psd_version)

 save(stream_container, psd_version) 

Saves the specified stream container.

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container.
psd_versionintThe PSD version.