freetype
[Top][All Lists]
Advanced

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

RE: [ft] Questions using FT_RENDER_MODE_MONO


From: Nik Napalm
Subject: RE: [ft] Questions using FT_RENDER_MODE_MONO
Date: Thu, 17 Apr 2008 08:52:44 +0000

FT_Bitmap tempbitmap;
FT_Bitmap_New(&tempbitmap);
FT_Bitmap_Convert( g_Library, &g_Slot->bitmap, &tempbitmap, 1);
 
// at this point tempbitmap.buffer will have a byte per pixel representation
 
FT_Bitmap_Done( g_Library, &tempbitmap );



Date: Wed, 16 Apr 2008 14:22:21 -0500
From: address@hidden
To: address@hidden
Subject: Re: [ft] Questions using FT_RENDER_MODE_MONO

Tom,
   I tried it out, but the results look almost identical to my original code.  I have not been able to find any documentation saying how the MONO bits are packed in the result bitmap.  My approach will only work if the bits are packed as closely as possible.  Do you know if this is the case?  It could be that the beginning of each row of the bitmap is byte aligned, or something similar.  Thanks for the help.

Cheers,
   Graham



Get fish-slapping on Messenger Play now!

reply via email to

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