Re: transparent gifs with matte?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!
----------------------------------------------------------

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux