ILayerResourceLoader Class

Summary: The layer resource loader.

Module: aspose.psd.fileformats.psd.layers

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

Aspose.PSD Version: 24.9.0

Methods

NameDescription
can_load(stream_container, psd_version)Determines whether layer resource can be loaded from the specified StreamContainer.
load(stream_container, psd_version)Loads the LayerResource.

Method: can_load(stream_container, psd_version)

 can_load(stream_container, psd_version) 

Determines whether layer resource can be loaded from the specified StreamContainer.

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container.
psd_versionintThe PSD version.

Returns

TypeDescription
booltrue if layer resource can be loaded from the specified StreamContainer; otherwise, false.

Method: load(stream_container, psd_version)

 load(stream_container, psd_version) 

Loads the LayerResource.

Parameters:

ParameterTypeDescription
stream_containerStreamContainerThe stream container to load from.
psd_versionintThe PSD version.

Returns

TypeDescription
LayerResourceThe loaded resource.