Re: [GD-DEVEL] Rendering Transparent Text?

[email protected] ("Pierre Joye") Mon, 22 Dec 2008 00:55:16 +0100
Newsgroups php.gd.devel
Message-ID <[email protected]>
hi,

I have something that could be seen as a fix. The idea is the following:

if alpha blending is disabled and the foreground color has an alpha
value of 127 (transparent) then the text is rendered using only the
alpha value (a kind of erasing mode). An example result is attached.

Comments/other ideas welcome,

On Sun, Dec 21, 2008 at 12:06 AM, Pierre Joye <[email protected]> wrote:
> On Sat, Dec 20, 2008 at 9:56 PM, Rob Zimmerman <[email protected]> wrote:
>> I need the anti-aliasing and as Colen pointed out you'll lose that unless
>> you write a drawing primitive.
>
> I understood and the examples I gave have the anti aliasing. What I
> asked is how have you tried it as imagecolortransparent has nothing to
> do with the alpha channel.
>
> In the mean time I gave it a try, and there is a bug. It should be to
> draw a text using a color with a 100% alpha channel. For now it draws
> the bounding boxes of each glyph and not the glyph itself. I will fix
> that asap.
>
> Cheers,
> --
> Pierre
>
> http://blog.thepimp.net | http://www.libgd.org
>



-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org