SmartObjectProvider Class

Summary: Defines the smart object provider that provides getting / setting data sources from global link resources of the PSD file and their contents.

Module: aspose.psd.fileformats.psd

Full Name: aspose.psd.fileformats.psd.SmartObjectProvider

Aspose.PSD Version: 24.9.0

Methods

NameDescription
convert_to_smart_object(layer_numbers)Converts layers to an embedded smart object.
convert_to_smart_object(layers)Converts layers to an embedded smart object.
embed_all_linked()Embeds all linked smart objects in the image.
new_smart_object_via_copy(source_layer)Creates a new smart object layer by coping the source one.
update_all_modified_content()Updates the content of all modified smart objects in the image.

Method: convert_to_smart_object(layer_numbers)

 convert_to_smart_object(layer_numbers) 

Converts layers to an embedded smart object.

Parameters:

ParameterTypeDescription
layer_numbersintThe layer numbers.

Returns

TypeDescription
SmartObjectLayerThe created SmartObjectLayer instance.

Method: convert_to_smart_object(layers)

 convert_to_smart_object(layers) 

Converts layers to an embedded smart object.

Parameters:

ParameterTypeDescription
layersLayer[]The layers.

Returns

TypeDescription
SmartObjectLayerThe created SmartObjectLayer instance.

Method: new_smart_object_via_copy(source_layer)

 new_smart_object_via_copy(source_layer) 

Creates a new smart object layer by coping the source one.

Parameters:

ParameterTypeDescription
source_layerSmartObjectLayerThe source layer.

Returns

TypeDescription
SmartObjectLayerThe cloned SmartObjectLayer instance.