A SERVICE OF

logo

MediaScript Objects and Methods 143
Threshold - specifies the degree to which a blurred version of a pixel must be different
from the original version before the enhancement takes effect. The default is 0.
Example
var image = new Media();
image.load(name @ "peppers.tga");
image.sharpenUnsharpMask(Radius @ 18, Amount @ 450, Threshold @ 125);
image.save(type @ "jpeg");
sizeText()
Returns the width, height, and lines for the specified parameters. This function is available
on Windows only.
Syntax
sizeText(
[text @ <"string">]
[font @ <"font family">]
[style @ <"modifier">]
[Size @ <value 1..4095>]
[justify @ <"justify">]
[Justify @ <"left", "center", "right", "justified">]
[spacing @ <"spacing">]
[Line @ <value 01. to 10>]
[smooth @ <true, false>]
[clearType @ <"clearType">]
[kern @ <true, false>]
[ClearType @ <true, false>] //(windows only)
);
Return Values
width - the overall width of the text in pixels.
height - the overall height of the text in pixels.
lines - the number of lines of text that will be drawn.