Location: PHPKode > scripts > Script Box > script-box/PHP4/SB/examples/waterMark/waterMark.example.php
<?php

/**
 * generates a google search box, to search safely, traditionaly or with optional specific domain search
 *
 * @author Michael J. Burgess
 * @package Example.searchGoogle
 * @version 1.5 
 * @copyright GNU Public Licence, Versions 2 and above
 * @see root/docs/manual.html
 * 
 */


include('../../ScriptBox.class.php'); //include class file

$sb = new ScriptBox('../../common/'); //create new ScriptBox object

//watermark 'image.png' with the text 'Hellow World!' in Courrier font
$myimage = $sb->setImageData('../../common/image.png', 'png', 'Hello World!', '../../common/cour.ttf'); //Cour.ttf NOT included, will cause errors 

$sb->waterMark($myimage);

?>
Return current item: Script Box