creating bitmap from glyph outline?

Hi All,
I want to create a bitmap of a character.
createBitmap( hDC, DWORD* bitmapBuffer)
DWORD BytesReq = GetGlyphOutlineW(hDC, c, GGO_GRAY8_BITMAP, &glyphMetric, 0, 0, &mat);
DWORD * glyphImg= new DWORD[BytesReq];
DWORD r = GetGlyphOutline(hDC, c, GGO_GRAY8_BITMAP, &glyphMetric, BytesReq, glyphImg, &mat);
Can somebody please explain how I can use the output information in glyphImg to put the values in the bitmapBuffer? (bitmapBuffer is a pointer to the data section of a Bitmap)
MSDN says GetGlyphOutline()  returns "information" in the glyphImg output buffer. Exactly what information is rerturned in this buffer.
Who is Participating?
Jose ParrotGraphics ExpertCommented:
You may want take a look at the tutorial at
as a complete source code there describes step by step how to use GetGlyphOutline().
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.