Shayton Equilibrium Kitchen Utensil 2003 User Manual

Page of 194
MediaScript Objects and Methods 145 
• 
• 
• 
Kern
 - if set to “true”, optimizes the spacing between text characters. By default this is set 
to true. If you do not want to use kerning, this must be specified as false.
NOTE: 
PostScript fonts store the kerning information in a separate file with a .afm extension. This 
file must be present in order for kerning to be applied to the text.
ClearType
 - if specified as “true”, the Windows ClearType text renderer will be used if 
available.
s t y l i z e D i f f u s e ( )
Makes the image appear as though viewed through a soft diffusion filter, with options to 
lighten or darken the effect.
Syntax
stylizeDiffuse(
[Radius @ <value 0..10000>]
[Mode @ <"mode"]
);
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. 
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");