Jump to content


Photo

Creating a Transparent Image with GD


  • Please log in to reply
1 reply to this topic

#1 anthq

anthq
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 23 July 2006 - 05:25 PM

OK.  I have a bunch of tabs on my site, but would like to use a TTF font for the text.  I know how to create an image with this font with GD, but it has to have an annoying background on it, which does not look nice on the tabs... So, is tehre a way that I can have GD take the tab (its a PNG, I could make it to jpg) and put text on it and make a new image, or just create the text on a transparent background?

Thanks.

#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 23 July 2006 - 06:56 PM

http://www.php.net/i...olortransparent
If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users