Shayton Equilibrium Kitchen Utensil 2003 User Manual

Page of 194
116 
 Chapter 3 
• 
• 
• 
Width
 - specifies the thickness (in pixels) of the line that describes the polygon. The default 
is 1.
NOTE: 
If the Fill parameter is set to true, Width is ignored.
Smooth
 
- if set to “true”, makes the edges of the polygon smooth, preventing a pixellated 
effect. The default is false.
Fill
 - if set to “true”, fills in the polygon with the color specified by the Color or Index 
parameter. The default is false.
Example
var image = new Media();
image.load(name @ "logobg.tga");
image.polygon(points @ "200,20;350,222;50,222;200,20", width @ 3);
image.save(type @ "jpeg");
q u a d W a r p ( )
Moves the corners of the source image to the specified locations, warping the image 
accordingly. The top left corner of the source image is represented by the coordinates 0,0.
NOTE: 
This is a linear transformation, so while it can be used to “fake” small 3D rotations, for 
greater angles, the lack of perspective will become apparent.
This function fully supports the CMYK color-space.
Syntax
quadWarp(
[Smooth @ <true, false>]
[TopLeftX @ <position>]
[TopLeftY @ <position>]
[BotLeftX @ <position>]
[BotLeftY @ <position>]
[BotRightX @ <position>]
[BotRightY @ <position>]
[TopRightX @ <position>]
[TopRightY @ <position>]
[layers @ <"layer list">] // (PSD files only)
);