Shayton Equilibrium Kitchen Utensil 2003 用户手册

下载
页码 194
MediaScript Objects and Methods 99 
• 
• 
• 
Other Style parameter values are “Underline”, “Italic” or “Italics”, and “Strikethru” or 
“Strikeout”).
NOTE: 
You can combine Style parameter values. For example: Style @ “Bold Italic” 
l i n e ( )
Draws a line across the image based on the specified parameters. This method accepts all 
 parameters except HandleX and HandleY.
The foreground color may vary with this function, depending on the original Media object. 
If the object has a set foreground color, or it is set with the 
MediaRich uses the set color. However, if the object has no set foreground color, MediaRich 
does the following:
For objects with 256 colors or less, MediaRich uses the last color index
For objects with 15-bit or greater resolution, MediaRich uses white
NOTE: 
Using line() to mask frames within a JavaScript for loop can result in initially poor 
anti-aliasing. To maintain optimal anti-aliasing, place the masking line outside the loop.
Syntax
line(
X1 @ <pixel>, 
Y1 @ <pixel>, 
X2 @ <pixel>, 
Y2 @ <pixel>, 
[Opacity @ <value 0..255>]
[Unlock @ <color in hexadecimal or rgb>]
[Color @ <color in hexadecimal or rgb>]
[Index @ <value 0..16777215>]
[Saturation @ <value 0..255>]
[PreserveAlpha @ <true, false>]
[Blend @ <"blend-type">]
[Width @ <value>] 
[Smooth @ <true, false>]
);
Parameters
X1
 - indicates (in pixels) the x axis coordinate of the line start point. This parameter is 
required and has no default value. 
Y1
 - indicates (in pixels) the y axis coordinate of the line start point. This parameter is 
required and has no default value. 
X2
 - indicates (in pixels) the x axis coordinate of the line end point. This parameter is 
required and has no default value. 
Y2
 - indicates (in pixels) the y axis coordinate of the line end point. This parameter is 
required and has no default value.