Login   Register  
PHP Classes
elePHPant
Icontem

File: how_to_use.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Richard Toth  >  RWatermark  >  how_to_use.php  >  Download  
File: how_to_use.php
Role: Example script
Content type: text/plain
Description: test for RWatermark
Class: RWatermark
Apply watermark identifiers to images
Author: By
Last change:
Date: 9 years ago
Size: 367 bytes
 

Contents

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