SmartResourceCreator Class

Summary: Defines the SmartResourceCreator class that can create PlLd, SoLd and SoLe resources.
Is is used to support smart object layers in the Adobe® Photoshop® images.

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

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

Aspose.PSD Version: 24.9.0

Constructors

NameDescription
SmartResourceCreator()Initializes a new instance of the SmartResourceCreator class.
SmartResourceCreator(is_custom, has_comp_info)Initializes a new instance of the SmartResourceCreator class.
SmartResourceCreator(template)Initializes a new instance of the SmartResourceCreator class
with the given template.

Methods

NameDescription
generate_placed_resource()Generates the placed resource.
generate_smart_embedded_resource()Generates the embedded smart object resource.
generate_smart_external_resource()Generates the external smart object resource.

Constructor: SmartResourceCreator()

 SmartResourceCreator() 

Initializes a new instance of the SmartResourceCreator class.

Constructor: SmartResourceCreator(is_custom, has_comp_info)

 SmartResourceCreator(is_custom, has_comp_info) 

Initializes a new instance of the SmartResourceCreator class.

Parameters:

ParameterTypeDescription
is_customboolif set to true [is custom].
has_comp_infoboolif set to true [has comp information].

Constructor: SmartResourceCreator(template)

 SmartResourceCreator(template) 

Initializes a new instance of the SmartResourceCreator class
with the given template.

Parameters:

ParameterTypeDescription
templatePlacedResourceThe smart object resource template.

Method: generate_placed_resource()

 generate_placed_resource() 

Generates the placed resource.

Returns

TypeDescription
PlLdResourceThe generated PlLdResource instance.

Method: generate_smart_embedded_resource()

 generate_smart_embedded_resource() 

Generates the embedded smart object resource.

Returns

TypeDescription
SoLdResourceThe generated SoLdResource instance.

Method: generate_smart_external_resource()

 generate_smart_external_resource() 

Generates the external smart object resource.

Returns

TypeDescription
SoLeResourceThe generated SoLeResource instance.