new ImageSource()

Description

Defines how to manipulate an image layer

Notice
This class is used as a Qualifier for the asset.overlay() and asset.underlay() methods.
You can find regular images and videos transformations below:

Methods


<protected> encodeAssetPublicID()

Description

Utility function to encode an asset publicID in an overlay

Examples

			encodeAssetPublicID('foo/bar'); // -> foo:bar

transformation( t ) → {this}

Description

Apply a transformation on the image source of the layer

Parameters
Name Type Description
t SDK.ImageTransformation

An image transformation to apply to the layer

Returns

getOpenSourceString() → {string}

Description

Returns the opening string of the layer, This method is used internally within LayerAction

Returns

format( format ) → {this}

Description

Apply a format for the image source of the layer

Parameters
Name Type Description
format FormatQualifier

A to apply to the layered image, see more here

Returns

getTransformation() → {SDK.Transformation}

Description

Returns the Transformation of the source