A SERVICE OF

logo

MediaScript Objects and Methods 147
Syntax
stylizeFindEdges(
[Threshold @ <value 0..255>]
[Grayscale @ <true, false>]
[Mono @ <true, false>]
[Invert @ <true, false>]
);
Parameters
Threshold - specifies how sharp an edge must be to included. The default is 0.
Grayscale - produces a monochromatic result. The default is false.
Mono - when set to “true”, causes all edges above the threshold value to default to 255. The
default is false.
Invert - reverses the default foreground and background colors. The default is false.
Example
var image = new Media();
image.load(name @ "peppers.tga");
image.stylizeFindEdges(Threshold @ 125, Grayscale @ true, Mono @
true, Invert @ true);
image.save(type @ "jpeg");
stylizeTraceContour()
Creates a contour-line effect by locating the transitions of the more significant bright areas
and outlining them for each color channel.
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
stylizeTraceContour(
[Level @ <value 0..255>]
[Upper @ <true, false>]
[Invert @ <true, false>]
);