Re: [GD-DEVEL] Rendering Transparent Text?

[email protected] (SGreth) Sat, 20 Dec 2008 08:15:28 -0500
Newsgroups php.gd.devel
Message-ID <[email protected]>
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.

Thanks!
~Rob


On Sat, Dec 20, 2008 at 2:42 AM, Pierre Joye <[email protected]> wrote:

> hi!
>
> On Sat, Dec 20, 2008 at 4:35 AM, SGreth <[email protected]> wrote:
> > Hello everybody,
> >    I've been scouring Google and I have yet to find anybody who's
> answered
> > the question if you can render transparent text with GD. Think of
> creating a
> > PNG "stencil" if you will. Take an image that's all black, and then "cut
> > out" some text on it by rendering some transparent text. I've been trying
> > all sorts of combinations with imagecolortransparent() to no avail. Any
> > insight if I'm chasing a pipe-dream would be greatly appreciated.
>
>
> See
> http://cvs.php.net/viewvc.cgi/gd/playground/text_on_transparent_background/
>
> It is in C but the PHP API is very closed :)
>
>
> Cheers,
> --
> Pierre
>
> http://blog.thepimp.net | http://www.libgd.org
>
> --
> GD Devel Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>