Shadowing

Perhaps the easiest text effect is shadowing. Shadowing is, quite simply, drawing text at an offset, and then drawing the original text over it. You could use translucent text to create a better shadow effect, but you haven't read about translucent text yet.

shadowing” makes use of the built-in PHP functions imagettftext( ).

01 <?php 
02 function imagettftextshadow(&$im,$size,$angle,$x,$y,&$col,
03                             &$shadowcolor,$fontfile,$text,$offsetx,$offsety)
04 { 
05     // Draw the shadow 
06     $text1 = imagettftext($im,$size,$angle,$x+$offsetx,$y+$offsety,$shadowcolor,$fontfile,$text); 
07     // Draw the original text 
08     $text2 = imagettftext ($im,$size,$angle,$x,$y,$col,$fontfile,$text); 
09 }
10 ?>