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?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to