new DistortAction( coordinates )

Description

Distorts the image to a new shape by adjusting its corners to achieve perception warping. Specify four corner coordinates, representing the new coordinates for each of the image's four corners, in clockwise order from the top-left corner.

Learn more: Distorting images

Parameters
Name Type Description
coordinates Array.<number>

Four x/y pairs representing the new image corners

Details

Visit Reshape for examples

Methods


getActionTag() → {string}

Description

Returns the custom name tag that was given to this action

Returns

setActionTag() → {this}

Description

Sets the custom name tag for this action

Returns

toString() → {string}

Description

Calls toString() on all child qualifiers (implicitly by using .join()).

Returns
Details

addQualifier( qualifier ) → {this}

Description

Adds the parameter to the action.

Parameters
Name Type Description
qualifier SDK.Qualifier
Returns

addFlag( flag ) → {this}

Description

Adds a flag to the current action.

Parameters
Name Type Description
flag Qualifiers.Flag
Returns
Details