Re: transparent gifs with matte?
| From: | zerof | Date: | Tue, 24 Apr 2007 18:56:15 +0000 |
| Subject: | Re: transparent gifs with matte? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253612@lists.php.net to get a copy of this message | ||
Ross escreveu:
Hi, I am looking to create a transparent text gif that allows me to set a colour for the matte. I have it working as a PNG but this is no good in IE. Does anyone have an exampe of this? This is my code so far. <?php header("Content-type: image/gif"); $im = imagecreate (800, 30); $black = ImageColorAllocate ($im, 255, 255, 255); $blue = ImageColorAllocate ($im, 75, 104, 177); ImageTTFText ($im, 20, 0, 10, 20, $blue, "Font - TrueType - Square 721 BT.ttf", "HELLO"); ImageGif ($im); ImageDestroy ($im); ?> R. -----See an example of imagefttext(). (in portuguese, but the code is simple to understand) http://www.educar.pro.br/a/gdlib/index.php?pn=81&tr=97 -- zerof http://www.educar.pro.br/ Apache - PHP - MySQL - Boolean Logics - Project Management ---------------------------------------------------------- Você deve, sempre, consultar uma segunda opinião! ---------------------------------------------------------- Deixe todos saberem se esta informação foi-lhe útil. ---------------------------------------------------------- You must hear, always, one second opinion! In all cases. ---------------------------------------------------------- Let the people know if this info was useful for you! ----------------------------------------------------------