Re: [GD-DEVEL] Rendering Transparent Text?

[email protected] ("Rob Zimmerman") Sat, 20 Dec 2008 15:56:30 -0500
Newsgroups php.gd.devel
Message-ID <[email protected]>
I need the anti-aliasing and as Colen pointed out you'll lose that unless
you write a drawing primitive. I ended up just using GD to make a black
image with white text and then having ImageMagick translate the white to
100% transparent.

Thanks to all for the responses,

~Rob

On Sat, Dec 20, 2008 at 3:07 PM, Pierre Joye <[email protected]> wrote:

> hi,
>
> On Sat, Dec 20, 2008 at 2:15 PM, SGreth <[email protected]> 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
>
> --
> GD Devel Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>