RE: [PHP-DEV] Image Alpha Channels
| From: | Mike richardson | Date: | Mon, 20 May 2002 23:38:15 +0000 |
| Subject: | RE: [PHP-DEV] Image Alpha Channels | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-84203@lists.php.net to get a copy of this message | ||
Thanks so much for your time sir!
I wasn't expecting an answer from such a prestigious source :)
I spent almost 3 hours searching for this answer, and (being a fair
programmer) I was fairly frustrated that I couldn't find an article on
it by searching google or the common php websites FAQ/Forums.
Where is a good place to conduct my searches for these sort of advanced
concepts, so that I don't have to waste anyone's time asking amatuer
questions?
Again, thanks for the response... It was most helpful.
Michael Richardson
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus@php.net]
Sent: Monday, May 20, 2002 4:10 PM
To: Mike richardson
Cc: php-dev@lists.php.net
Subject: Re: [PHP-DEV] Image Alpha Channels
Read this slide: http://conf.php.net/pres/slides/intro/image_colors4.php
On Mon, 20 May 2002, Mike richardson wrote:
>
> Thanks, in advance.
>
> PHP's new image functions contain alpha transparency.
>
> How does one go about setting a color which has a transparent quality?
>
> For instance.. I would like to create two rectangles. one black, one
> grey, on a white background.
>
> I would like the grey one to be on top, and be 50% transparent, so
> that the black one will show through.
>
> Is this not possible? I can't seem to figure out how to create the
> "grey" color with an alpha channel property, so that it will allow the
> black box to show through.
>
> Best wishes.
>
> Michael Richardson
> "phpzen"
>