stylizeFindEdges() - Media Method
The stylizeFindEdges() method traces the edges (areas of significant transitions) of the image with broad lines.
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
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");
On-Line Documentation