freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] gamma correction demo images


From: Nikolaus Waxweiler
Subject: Re: [ft-devel] gamma correction demo images
Date: Fri, 20 Nov 2015 20:46:24 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

Yes, the only difference in blending is that subpixel mode does it 3
times per pixel.

Okay, thanks :)

The filter is color-balanced, but not normalized. Values above 0x100
will have to be clamped and this non-linearity causes distortion and
adds to color fringing. Stem darkening is the better way to increase
contrast.

So I tried to find two values that sum to 0x100:

>>> def f(a,c):
...  return [a - c, a + c, 2 * a, a + c, a - c]
...
>>> [(a,c) for a in range(0x100) for c in range(0x100) if a > c and sum(f(a, c)) == 0x100]
[]

So, uh, what am I missing? I found some values that sum to 0xFC but I want 0x100 :(



reply via email to

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