LclrResource Class

Summary: Class LclrResource.
This resource contains information about color of layer in layers’ list is PS. It’s only

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

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

Inheritance: LayerResource

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
LclrResource()Initializes a new instance of the LclrResource class.
LclrResource(color)Initializes a new instance of the LclrResource class.
LclrResource(data)Initializes a new instance of the LclrResource 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.
colorSheetColorHighlightEnumr/wGets or sets the color of layer.
keyintrGets the layer resource key.
lengthintrGets the layer resource length in bytes.
psd_versionintrGets the psd version.
signatureintrGets the signature.

Methods

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

Constructor: LclrResource()

 LclrResource() 

Initializes a new instance of the LclrResource class.

Constructor: LclrResource(color)

 LclrResource(color) 

Initializes a new instance of the LclrResource class.

Parameters:

ParameterTypeDescription
colorSheetColorHighlightEnumThe color.

Constructor: LclrResource(data)

 LclrResource(data) 

Initializes a new instance of the LclrResource class.

Parameters:

ParameterTypeDescription
databyteThe resource data.

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.