|
From: | Scott Long |
Subject: | Re: [ft-devel] Antialiasing |
Date: | Wed, 22 Mar 2006 09:07:46 -0800 |
User-agent: | Mozilla Thunderbird 1.0.7 (X11/20050923) |
huels wrote:
This gives me not a 1 Bit Bitmap. The Bitmap is still with antialiasing. I get not only the values 0 and 255. What is the problem? Thanks for your help. Regards Stephan
The problem is that you don't seem to understand how 1-bit bitmaps work. There are 8 pixels packed in each byte of monochrome bitmap data. Not only are you examining their values incorrectly, you are iterating far beyond the end of the bitmap buffer (at least 8 times too far), and furthermore you are ignoring the value of the bitmap pitch.
If you require help understanding how to process 1-bit-per-pixel bitmaps, I can possibly help you off-list, but this question is outside the scope of FreeType.
-- Scott Long <address@hidden> Software Engineer SwiftView, Inc. (971) 223-2639
[Prev in Thread] | Current Thread | [Next in Thread] |