stylizeEmboss() - Media Method

The stylizeEmboss() method applies a filter that makes the image appear as though embossed on paper.

Note:  This function is “selection aware”—if a selection is made, the system applies the function based on the current selection. For more information about making selections, see selection() - Media Method.

Syntax

stylizeEmboss(

[Height @ <value 1..10>]

[Angle @ <value -360..360>]

[Amount @ <value 1..500>]

);

Parameters

Height - determines the depth of the embossing effect. The default is 3.

Angle - specifies the angle of the light source. The default is 135 (light source comes from the upper left).

Amount - specifies the extent of the effect; the higher the value, the greater the detail. The default is 100.

Example

var image = new Media();

image.load(name @ "peppers.tga");

image.stylizeEmboss(Height @ 2, Angle @ 90, Amount @ 250);

image.save(type @ "jpeg");