freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Antialiasing Glyph onto Image


From: David Turner
Subject: Re: Antialiasing Glyph onto Image
Date: Wed, 07 Jun 2000 17:27:12 +0200

Hi John,

> 
> Hi,
> 
> Does anyone know of an efficient algorithm
> for rendering antialiased pixmap glyphs onto
> a background image ( multi colors) ?
> 
> I am using:
> 
> (pen.red( x) + background.red( 1-x)) /x
> 

I suppose that you meant something like:

   (x*pen + (4-x)*background)/4

because your formula doesn't make sense if x == 0,
and gives incorrect results for x > 0 :-)

> where x is the number in the glyph pixmap ( 0-4),
> for each color component
> 
> It works ok, but not good.
> 
What do you mean exactly ?
Is is color bleefing, aliasing, blurring, etc.. ?
Can you give an example to us ?

Best Regards,

- David



> Thanks in advance !!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]