freetype
[Top][All Lists]
Advanced

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

Re: [ft] Pixel_Mode


From: samaram s
Subject: Re: [ft] Pixel_Mode
Date: Wed, 27 Jan 2010 14:15:57 -0500

Thanks Tom..will workout on it.

Do you have any idea in the example how is it defaultly considering PT_PIXEL_MODE_GRAY?


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


reply via email to

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