image editing
|shadowing
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.
full source of shadowing [ line 1 - 9 ] | download shadowing
| 1 | <?php |
| 2 | function imagettftextshadow (& $im ,$size ,$angle ,$x ,$y ,& $col , & $shadowcolor ,$fontfile ,$text ,$offsetx ,$offsety) |
| 3 | { |
| 4 | // Draw the shadow |
| 5 | $text1 = imagettftext ($im ,$size ,$angle ,$x +$offsetx ,$y +$offsety ,$shadowcolor ,$fontfile ,$text ); |
| 6 | // Draw the original text |
| 7 | $text2 = imagettftext ($im ,$size ,$angle ,$x ,$y ,$col ,$fontfile ,$text ); |
| 8 | } |
| 9 | ?> |
39 hits by 23 users in the last 30 minutes.