Re: [GD-DEVEL] Rendering Transparent Text?
| From: | Pierre Joye | Date: | Sat, 20 Dec 2008 20:07:10 +0000 |
| Subject: | Re: [GD-DEVEL] Rendering Transparent Text? | ||
| References: | 1 2 3 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-531@lists.php.net to get a copy of this message | ||
hi,
On Sat, Dec 20, 2008 at 2:15 PM, SGreth <sgreth@sgreth.com> wrote:
> Hi Pierre,
> Unfortunately I wasn't trying to render text with a a transparent
> background but rather render text transparent. Take a black canvas, then
> render text on it, which would 'cut out' of the black canvas and thus be
> transparent. The end result being something that looked like a stencil.
Have you tried it? Using a color like rgba(0,0,0,127) and alpha
blending disabled.
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org