public class SmartObjectProvider extends Object
Defines the smart object provider that provides getting / setting data sources from global link resources of the PSD file and their contents.
| Modifier and Type | Method and Description |
|---|---|
SmartObjectLayer |
convertToSmartObject(int... layerNumbers)
Converts layers to an embedded smart object.
|
SmartObjectLayer |
convertToSmartObject(Layer[] layers)
Converts layers to an embedded smart object.
|
void |
embedAllLinked()
Embeds all linked smart objects in the image.
|
SmartObjectLayer |
newSmartObjectViaCopy(SmartObjectLayer sourceLayer)
Creates a new smart object layer by coping the source one.
|
void |
setDataSource(LinkDataSource dataSource)
Sets (replaces or adds) the link data source in the global link resource.
|
void |
updateAllModifiedContent()
Updates the content of all modified smart objects in the image.
|
public final void embedAllLinked()
Embeds all linked smart objects in the image.
public final void updateAllModifiedContent()
Updates the content of all modified smart objects in the image.
public final SmartObjectLayer newSmartObjectViaCopy(SmartObjectLayer sourceLayer)
Creates a new smart object layer by coping the source one.
sourceLayer - The source layer.SmartObjectLayer instance.PsdImageException - You can only replace an embedded smart object.public final SmartObjectLayer convertToSmartObject(int... layerNumbers)
Converts layers to an embedded smart object.
layerNumbers - The layer numbers.SmartObjectLayer instance.PsdImageException - No layers to convert.
or
Layer number is out of range.public final SmartObjectLayer convertToSmartObject(Layer[] layers)
Converts layers to an embedded smart object.
layers - The layers.SmartObjectLayer instance.PsdImageException - No layers to convert.public final void setDataSource(LinkDataSource dataSource)
Sets (replaces or adds) the link data source in the global link resource.
dataSource - The link data source.Copyright (c) 2008-2020 Aspose Pty Ltd. All Rights Reserved.