Shayton Equilibrium Kitchen Utensil 2003 User Manual

Page of 194
138 
 Chapter 3 
• 
• 
• 
The second parameter specifies the position of the selected layer along the y-axis of the 
composite image, with the layer’s center point used as the anchor point. For example, a 
value of 100 positions the center point at pixel 100 on the y-axis of the composite image.
Example
var image = new Media();
image.setLayerY(2, 100);
s e t L a y e r P i x e l s ( )
Sets the image in the specified layer of the current media to the specified raster. 
Syntax
<object name>.setLayerPixels(
<layer index>
<media>
);
Parameters
layerIndex
 - the index of the layer to be replaced. This must exist in the current image.
media
 - the raster to use as the replacement. This must consist of a single raster. 
s e t M e t a d a t a ( )
Attaches metadata specified by data to the image for the specified format. If data is not 
specified or null, clear any metadata for the specified format. Data must be an appropriate 
XML document for the format specified and should be validated against the relevant 
schema. 
NOTE: 
For Exif and IPTC formats, only elements present in the respective schema will be added to 
the image on save. Any other data present in the document will be ignored.
Syntax
<object name>.setMetadata(
<"format">, 
<"data">
);
Parameters
format 
- the format of the document specified by data. Valid values are “Exif”, “IPTC”, 
and “XMP”.
data
 - a string containing an XML document corresponding to format.