creating bitmap from glyph outline?

Posted on 2009-12-30
Last Modified: 2013-12-21
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.
Question by:barman
    1 Comment
    LVL 18

    Accepted Solution

    You may want take a look at the tutorial at
    as a complete source code there describes step by step how to use GetGlyphOutline().

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
    Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now