[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Pixel_Mode
From: |
Tom Bishop, Wenlin Institute |
Subject: |
Re: [ft] Pixel_Mode |
Date: |
Wed, 27 Jan 2010 10:45:19 -0800 |
On Jan 27, 2010, at 9:11 AM, samaram s wrote:
>
> Anybody Please...........
>
> Hi,
>
> I am getting used to freetype API with the examples given.Where in example1
> gives, FT_PIXEL_MODE_GRAY. I would like to get a monochrome bitmap, using 1
> bit per pixel.
>
> Can anyone please explain me where we are setting the pixel_mode in
> example1.Is it defaultly referring MODE_GRAY.Where should i change if in the
> same code i would like to get MONOCHROME bitmap.
>
> I changed setting slot->bitmap.pixel_mode = FT_PIXEL_MODE_MONO.
FT_Load_Glyph(face, glyphNumber, FT_LOAD_MONOCHROME);
Hope this helps,
Tom
文林 Wenlin Institute, Inc. Software for Learning Chinese
E-mail: address@hidden Web: http://www.wenlin.com
Telephone: 1-877-4-WENLIN (1-877-493-6546)
☯