Shayton Equilibrium Kitchen Utensil 2003 User Manual

Page of 194
148 
 Chapter 3 
• 
• 
• 
Parameters
Level
 - indicates the level of each color gun. The default is 128.
Upper
 - if set to “true”, causes the upper edge to be delineated. The default is false (the 
lower edge is delineated).
Invert
 - if set to “true”, reverses the default foreground and background colors. The 
default is false.
Example
var image = new Media();
image.load(name @ "peppers.tga");
image.stylizeTraceContour(Level @ 96, Upper @ true, Invert @ true);
image.save(type @ "jpeg");
z o o m ( )
Zooms in on a specified portion of the media and fits it to the specified size. This constitutes 
a crop followed by a scale. This function fully supports the CMYK color-space.
Syntax
zoom(
[Alg @ <"Fast", "Smooth", "Outline", "Best">]
[Xs @ <pixels>]
[Ys @ <pixels>]
[X @ <left pixel>]
[Y @ <top pixel>]
[Scale @ <value>]
[PreserveBackground @ <true, false>]
[PreserveBackgroundCutoff @ <value 0..100>]
[PadColor @ <color in hexadecimal or rgb>]
[PadIndex @ <value 0..16777215>]
[Transparency @ <value 0..255>]
[layers @ <"layer list">] // (PSD files only)
);