Re: transparent gifs with matte?
| From: | Richard Lynch | Date: | Wed, 25 Apr 2007 01:15:27 +0000 |
| Subject: | Re: transparent gifs with matte? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-253639@lists.php.net to get a copy of this message | ||
On Tue, April 24, 2007 9:08 am, Ross wrote:
> 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);
> ?>
I dunno what you mean by matte, but if you want the GIF to have a
transparent color, you'll need to use a PHP function you can find on
php.net that starts with 'image' and has 'transparent' in it...
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?