[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 602
  • Last Modified:

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.
Thanks,
PDB
0
barman
Asked:
barman
1 Solution
 
Jose ParrotGraphics ExpertCommented:
You may want take a look at the tutorial at
http://support.microsoft.com/kb/87115
as a complete source code there describes step by step how to use GetGlyphOutline().
Jose
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now