On Wed, Jan 27, 2010 at 1:45 PM, Tom Bishop, Wenlin Institute
<address@hidden> wrote:
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)
☯
_______________________________________________
Freetype mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/freetype