new VectorizeEffectAction()

Description

Vectorizes the image.

Details

Visit Effect for an example

Methods


numOfColors( num ) → {this}

Description

The number of colors. (Range: 2 to 30, Server default: 10)

Parameters
Name Type Description
num number | string
Returns

getActionTag() → {string}

Description

Returns the custom name tag that was given to this action

Returns

detailsLevel( num ) → {this}

Description

The level of detail. Specify either a percentage of the original image (Range: 0.0 to 1.0) or an absolute number of pixels (Range: 0 to 1000). (Server default: 300)

Parameters
Name Type Description
num number | string
Returns

setActionTag() → {this}

Description

Sets the custom name tag for this action

Returns

despeckleLevel( num ) → {this}

Description

The size of speckles to suppress. Specify either a percentage of the original image (Range: 0.0 to 1.0) or an absolute number of pixels (Range: 0 to 100, Server default: 2)

Parameters
Name Type Description
num number | string
Returns

toString() → {string}

Description

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

Returns
Details

cornersLevel( num ) → {this}

Description

The corner threshold. Specify 100 for no smoothing (polygon corners), 0 for completely smooth corners. (Range: 0 to 100, Default: 25)

Parameters
Name Type Description
num number | string
Returns

addQualifier( qualifier ) → {this}

Description

Adds the parameter to the action.

Parameters
Name Type Description
qualifier SDK.Qualifier
Returns

paths( num ) → {this}

Description

The optimization value. Specify 100 for least optimization and the largest file. (Range: 0 to 100, Server default: 100).

Parameters
Name Type Description
num number
Returns

addFlag( flag ) → {this}

Description

Adds a flag to the current action.

Parameters
Name Type Description
flag Qualifiers.Flag
Returns
Details