Shayton Equilibrium Kitchen Utensil 2003 User Manual

Page of 194
78 
 Chapter 3 
• 
• 
• 
PreserveAlpha
 - if set to true, preserves the alpha channel of the target image as the 
alpha channel of the resulting image. The default is false.
Blend
 - specifies the type of blending used to combine the drawn object with the images. 
Blend options are: “Normal”, “Darken”, “Lighten”, “Hue”, “Saturation”, “Color”, 
“Luminosity”, “Multiply”, “Screen”, “Dissolve”, “Overlay,” “HardLight”, “SoftLight”, 
“Difference”, “Exclusion”, “Dodge”, “ColorBurn”, “Under”, “Colorize” (causes only the 
hue component of the source to be stamped down on the image), and “Prenormal”.
NOTE:
 “Burn” has been deprecated. “ColorBurn” results in the same blend.
Width
 - specifies the thickness (in pixels) of the line that describes the ellipse. 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 ellipse smooth, preventing a pixellated effect. 
The default is false.
Fill
 - fills in the ellipse 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.ellipse(X @ 272, Y @ 180, Rx @ 50, Ry @ 30, Opacity @ 128, 
Color @ 0x66CCFF, Saturation @ 128, Blend @ "Hue", Smooth @ true, 
Fill @ false);
image.save(type @ "jpeg");
e m b e d d e d P r o f i l e ( )
Returns true if the media has an embedded ICC profile, false if not.
Syntax
<object name>.embeddedProfile();
Parameters
This function has no parameters.
Example
if (image.embeddedProfile() == false)
image.colorCorrect(destProfile @ "sRGB.icc");
{...