[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] Gamma correction for anti-aliasing
From: |
Vincent Caron |
Subject: |
Re: [Devel] Gamma correction for anti-aliasing |
Date: |
08 Jun 2002 09:15:35 +0200 |
Ops, there is an academic error in the ftstring patch, instead of :
for (i = 0; i < 256; i++)
gamma_ramp[i] = (FT_Byte)( pow((double)i / 256.0f, gamma_inv) *
256.0f );
read :
for (i = 0; i < 256; i++)
gamma_ramp[i] = (FT_Byte)( pow((double)i / 255.0f, gamma_inv) *
255.0f );