LayerResourcesRegistry Class

Summary: Define the the layer resources registry for PSD files loading.

Module: aspose.psd.fileformats.psd.layers

Full Name: aspose.psd.fileformats.psd.layers.LayerResourcesRegistry

Aspose.PSD Version: 24.4.0

Properties

NameTypeAccessDescription
registered_descriptors [static]ILayerResourceLoader[]rGets the registered descriptors.

Methods

NameDescription
get_first_supported_descriptor(stream, psd_version)Gets the first supported opener descriptor.
get_first_supported_descriptor_by_type_name(descriptor_type_name)Gets the first supported descriptor by its type name.
load_resource_by_first_supported_descriptor(stream, psd_version)Loads LayerResource using first found opener suitable for the specified .
register_opener(opener_descriptor)Registers the opener.
unregister_opener(opener_descriptor)Unregisters the opener.

Method: get_first_supported_descriptor(stream, psd_version) [static]

 get_first_supported_descriptor(stream, psd_version) 

Gets the first supported opener descriptor.

Parameters:

ParameterTypeDescription
stream_io.BufferedRandomThe stream.
psd_versionintThe PSD version.

Returns

TypeDescription
ILayerResourceLoaderThe layer resource loader descriptor or null if no loader descriptor supported for such stream.

Method: get_first_supported_descriptor_by_type_name(descriptor_type_name) [static]

 get_first_supported_descriptor_by_type_name(descriptor_type_name) 

Gets the first supported descriptor by its type name.

Parameters:

ParameterTypeDescription
descriptor_type_namestringThe descriptor type name.

Returns

TypeDescription
ILayerResourceLoaderThe first found opener descriptor or null if not such descriptor is found.

Method: load_resource_by_first_supported_descriptor(stream, psd_version) [static]

 load_resource_by_first_supported_descriptor(stream, psd_version) 

Loads LayerResource using first found opener suitable for the specified .

Parameters:

ParameterTypeDescription
stream_io.BufferedRandomThe stream.
psd_versionintThe PSD version.

Returns

TypeDescription
LayerResourceThe loaded LayerResource or null if no opener is found.

Method: register_opener(opener_descriptor) [static]

 register_opener(opener_descriptor) 

Registers the opener.

Parameters:

ParameterTypeDescription
opener_descriptorILayerResourceLoaderThe opener descriptor to register.

Method: unregister_opener(opener_descriptor) [static]

 unregister_opener(opener_descriptor) 

Unregisters the opener.

Parameters:

ParameterTypeDescription
opener_descriptorILayerResourceLoaderThe opener descriptor to unregister.