new TrimAction()

Description

Removes the edges of the image based on the color of the corner pixels. Specify a color other than the color of the corner pixels using the colorOverride() method

Details

Visit Reshape for examples

Methods


colorSimilarity( tolerance )

Parameters
Name Type Description
tolerance number

The tolerance level for color similarity.


colorOverride( color )

Parameters
Name Type Description
color string | Qualifiers.Color

Overrides the corner pixels color with the specified color.


getActionTag() → {string}

Description

Returns the custom name tag that was given to this action

Returns
Details

setActionTag() → {this}

Description

Sets the custom name tag for this action

Returns
Details

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
Details

addFlag( flag ) → {this}

Description

Adds a flag to the current action.

Parameters
Name Type Description
flag Qualifiers.Flag
Returns
Details