SmartObjectProvider.ConvertToSmartObject

ConvertToSmartObject(params int[])

Converts layers to an embedded smart object.

public SmartObjectLayer ConvertToSmartObject(params int[] layerNumbers)
ParameterTypeDescription
layerNumbersInt32[]The layer numbers.

Return Value

The created SmartObjectLayer instance.

Exceptions

exceptioncondition
PsdImageExceptionNo layers to convert. or Layer number is out of range.

See Also


ConvertToSmartObject(Layer[])

Converts layers to an embedded smart object.

public SmartObjectLayer ConvertToSmartObject(Layer[] layers)
ParameterTypeDescription
layersLayer[]The layers.

Return Value

The created SmartObjectLayer instance.

Exceptions

exceptioncondition
PsdImageExceptionNo layers to convert.

See Also