
MediaScript Objects and Methods 69
•
•
•
•
digimarcDetect()
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");
}
digimarcEmbed()
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>]
);