RE: [PHP] dynamicly generating a transparent truecolor image
| From: | Mike Brum | Date: | Sat, 17 Jan 2004 13:12:37 +0000 |
| Subject: | RE: [PHP] dynamicly generating a transparent truecolor image | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174917@lists.php.net to get a copy of this message | ||
PNG's support transparency as well as GIFs.
The short answer is that you'll create your image and also specify a color
that will be made transparent. I don't see why imagecreatetruecolor making a
default black image is a problem? If it is, just set black to be the
transparent color and go from there.
This is your friend:
http://us4.php.net/manual/en/function.imagecolortransparent.php
Regards
Michael Brum
-----Original Message-----
From: Peter Vertes [mailto:pvertes@nyc.rr.com]
Sent: Saturday, January 17, 2004 1:48 AM
To: php
Subject: Re: [PHP] dynamicly generating a transparent truecolor image
If you want to create a transparent image don't forget it must be a GIF. At
least that's what my graphics guys have been telling me all these years :)
-Pete
On Jan 16, 2004, at 04:41, Michel van der Breggen wrote:
> hi,
> i have a problem, i would like to dynamicly generete a transparent
> truecolor image in php. The problem is that imagecreatetruecolor
> standard creates a black image. Does anybody have a solution for this?
>
> Thanks in advance,
> Michel van der Breggen
> mbreggen@dontspam.stoutencms.nl
>
> --
> PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
> http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php