PattResource Class

Summary: Class PattResource. Resource with pattern data

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

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

Inheritance: LayerResource

Aspose.PSD Version: 24.4.0

Constructors

NameDescription
PattResource()Initializes a new instance of the PattResource class.
PattResource(key, patterns)Initializes a new instance of the PattResource class.

Properties

NameTypeAccessDescription
PSB_RESOURCE_SIGNATURE [static]intrThe PSB-specific resource signature.
RESOURCE_SIGNATURE [static]intrThe common resource signature.
TYPE_TOOL_KEY [static]intrThe ‘Patt’ type tool info key for 8-bits.
TYPE_TOOL_KEY2 [static]intrThe ‘Pat2’ type tool info key for 16-bits.
TYPE_TOOL_KEY3 [static]intrThe ‘Pat3’ type tool info key for 32-bits.
keyintrGets the layer resource key.
lengthintrGets the layer resource length in bytes.
patternsPattResourceData[]r/wGets or sets the patterns data;
psd_versionintrGets the psd version.
signatureintrGets the layer resource signature.

Methods

NameDescription
save(stream_container, psd_version)Saves the resource block data.

Constructor: PattResource()

 PattResource() 

Initializes a new instance of the PattResource class.

Constructor: PattResource(key, patterns)

 PattResource(key, patterns) 

Initializes a new instance of the PattResource class.

Parameters:

ParameterTypeDescription
keyintThe resource type key.
patternsPattResourceData[]The patterns data.

Method: save(stream_container, psd_version)

 save(stream_container, psd_version) 

Saves the resource block data.

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container to save to.
psd_versionintThe PSD version.