...

View Full Version : GD Library - Anti Aliasing?



iceflyin
08-12-2007, 06:07 AM
And, is there any way I can get this text to anti-alias??? I'm adding it to a pre-existing image.


<?php
header ("Content-type: image/gif");
$img_handle = @imagecreatefromgif('default.gif') or die ("Cannot Load Image");
imageantialias ($img_handle, $on);
$txt_color = imagecolorclosest ($img_handle, 0, 0, 0);
imagettftext($img_handle, 12, 0, 200 , 115, $txt_color, "tahoma.ttf", "TAHHHHOMAAA $on");
Imagegif ($img_handle);
?>

StupidRalph
08-12-2007, 11:09 AM
Have you tried the comments section of the imageantialias function?
http://www.php.net/imageantialias

Perhaps you can create your string as a picture (probably imagestring()) and overlay that over your default.gif.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum