Shayton Equilibrium Kitchen Utensil 2003 User Manual

Page of 194
MediaScript Objects and Methods 69 
• 
• 
• 
d i g i m a r c D e t e c t ( )
Returns true if the object includes embedded Digimarc information. Otherwise returns 
false.
Syntax
digimarcDetect();
Parameters
There are no parameters for this function.
Example
var Image = new Media();
Image.load(name @ "peppers.jpg");
if (Image.digimarcDetect() == true)
{
// Do something if a watermark is dected
Image.drawText(font @ "Arial", style @ "Bold", text @ "A 
DigiMarc watermark has been detected!", size @ 20);
Image.save(type @ "jpeg");
}
d i g i m a r c E m b e d ( )
Embeds Digimarc information in the specified image.
Syntax
digimarcEmbed(
[Type @ <"type">]
[CreatorID @ <id number>]
[CreatorPin @ <pin number>]
[DistributorID @ <id number>]
[DistributorPin @ <pin number>]
[ImageID @ <id number>]
[TransactionID @ <id number>]
[Year1 @ <yyyy>]
[Year2 @ <yyyy>]
[Adult @ <true, false>]
[Restricted @ <true, false>]
[CopyProtected @ <true, false>]
[Durability @ <value 1..16>]
);