PHP Classes
elePHPant
Icontem

Watermark Class Example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Watermark  >  All threads  >  Watermark Class Example  >  (Un) Subscribe thread alerts  
Subject:Watermark Class Example
Summary:Watermark Class Example
Messages:4
Author:Steven Hawks
Date:2006-07-28 14:59:28
Update:2009-02-27 12:16:28
 

  1. Watermark Class Example   Reply   Report abuse  
Picture of Steven Hawks Steven Hawks - 2006-07-28 14:59:28
Can someone show an example using this class?

  2. Re: Watermark Class Example   Reply   Report abuse  
Picture of Mario Guarinoni Mario Guarinoni - 2006-08-01 19:29:33 - In reply to message 1 from Steven Hawks
hi.
you can find an example in the class examples.
To run the class you need a ttf file (truetype file, ex. verdana.ttf) and
gd module in your php (it comes in standart).


  3. Re: Watermark Class Example   Reply   Report abuse  
Picture of farhan farhan - 2009-02-27 09:25:48 - In reply to message 2 from Mario Guarinoni
The example is very limited there is no details on how to change position of text on the image

can you please tell how to move text
like if i have to print text in center 50px from top how do i do that?

  4. Re: Watermark Class Example   Reply   Report abuse  
Picture of Mario Guarinoni Mario Guarinoni - 2009-02-27 12:16:28 - In reply to message 3 from farhan
you may change the calculate_pos() function, if you want to change the text position. The class only puts text in bottom right, of course it can be improved.