PtFlResource Class

Summary: Class PtFlResource. Contains Pattern Fill Layer Data.

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

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

Inheritance: FillLayerResource

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
PtFlResource(pattern_name, pattern_id)Initializes a new instance of the PtFlResource 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.
align_with_layerboolr/wGets or sets a value indicating whether [align with layer].
angledoubler/wGets or sets the angle.
is_linked_with_layerboolr/wGets or sets a value indicating whether this instance is linked with layer.
keyintrGets the layer resource key.
lengthintrGets the layer resource length in bytes.
offsetPointr/wGets or sets the offset.
pattern_idstringr/wGets or sets the pattern identifier.
pattern_namestringr/wGets or sets the name of the pattern.
psd_versionintrGets the minimal psd version required for layer resource. 0 indicates no restrictions.
scaledoubler/wGets or sets the scale.
signatureintrGets the layer resource signature.

Methods

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

Constructor: PtFlResource(pattern_name, pattern_id)

 PtFlResource(pattern_name, pattern_id) 

Initializes a new instance of the PtFlResource class.

Parameters:

ParameterTypeDescription
pattern_namestringName of the pattern.
pattern_idstringThe pattern identifier.

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.