Re: [GD-DEVEL] Rendering Transparent Text?
| From: | Rob Zimmerman | Date: | Sat, 20 Dec 2008 20:56:30 +0000 |
| Subject: | Re: [GD-DEVEL] Rendering Transparent Text? | ||
| References: | 1 2 3 4 | Groups: | php.gd.devel |
| Request: | Send a blank email to php-gd-devel+get-532@lists.php.net to get a copy of this message | ||
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 <pierre.php@gmail.com> wrote:
> 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
>
> --
> GD Devel Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>