stylizeDiffuse() - Media Method
The stylizeDiffuse() method applies a filter that makes the image appear as though viewed through a soft diffuser, with options to lighten or darken the effect.
Syntax
stylizeDiffuse(
[Radius @ <value 0..10000>]
[Mode @ <"mode"]
);
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.
Parameters
Radius - specifies the extent of the diffusion effect. The default is 1 (almost no effect).
Mode - indicates the diffusion mode, such as Lighten and Darken. The default is Normal (no lightening or darkening effect).
Example
var image = new Media();
image.load(name @ "peppers.tga");
image.stylizeDiffuse(Radius @ 10, Mode @ "Lighten");
image.save(type @ "jpeg");
On-Line Documentation