Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[PHP] Adding drop shadow on a font

Status
Not open for further replies.
Joined
May 11, 2008
Messages
513
Reaction score
99
Hello there!

I'm currently coding a image where you can change it via the URL, However, I want to add some drop shadow on my image such as:

...

I've currently got this.
PHP:
<? 
$font = $_GET['input1'];
    
    $font_file = '../_styling/fonts/volter.ttf';
    
    header("Content-type: image/png");
    
    $im = @imagecreate("235","69") or die();
    
    $transparant = imagecolorallocate($im, 51, 80, 124);
    ImageColorTransparent($im, $transparant);
    
    $img = imagecreatefrompng("../images/main/ad.PNG");
    imagecopy($im, $img, 0, 0, 0, 0, 235, 69); 
    
    $black = imagecolorallocate($im, 0x00, 0x00, 0x00);
    
    imagefttext($im, 13, 0, 6, 42, $black, $font_file, $font);
    
    imagepng($im);

    imagedestroy($im);

?>

Whick come out as:


Off topic: I've also created this!



such as

http://habbocms.info/imager/account/co.uk/temping

Help would be appericated
 
Initiate Mage
Joined
Mar 31, 2007
Messages
75
Reaction score
1
How about..



This has the class, an extension, and examples. Hope this helps you ;)
 
Status
Not open for further replies.
Back
Top