A SERVICE OF

logo

146 Chapter 3
stylizeEmboss()
Makes the image appear as though embossed on paper.
NOTE: This function is “selection aware,” so that if a selection has been made, the system applies
it based on the current selection. For more information about making selections, see “selection()” on
page 129.
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");
stylizeFindEdges()
Traces the edges (areas of significant transitions) of the image with broad lines.
NOTE: This function is “selection aware,” so that if a selection has been made, the system applies
it based on the current selection. For more information about making selections, see “selection()” on
page 129.