<?
require "./class.rwatermark.php";
$handle = new RWatermark(FILE_JPEG, "./original.jpg");
$handle->SetPosition("RND");
$handle->SetTransparentColor(255, 0, 255);
$handle->SetTransparency(60);
$handle->AddWatermark(FILE_PNG, "./watermark.png");
Header("Content-type: image/png");
$handle->GetMarkedImage(IMG_PNG);
$handle->Destroy();
?>
|