new MakeTransparentEffectAction()

Description

Makes the background of the image transparent (or solid white for formats that do not support transparency).

Details

LeveledEffectAction

Visit Effect for an example

Methods


tolerance( value )

Description

Sets the tolerance used to accommodate variance in the background color.

Parameters
Name Type Description
value number | string

The tolerance used to accommodate variance in the background color. (Range: 0 to 100, Server default: 10)


colorToReplace( color ) → {this}

Description

Sets the color to make transparent.

Parameters
Name Type Description
color string

The HTML name of the color (red, green, etc.) or RGB hex code.

Returns