Solved

Bitmap from character

Posted on 1998-01-05
2
550 Views
Last Modified: 2013-12-03
How can I get a HBITMAP of a single character ?
I have found an example somewhere that uses GetGlyphOutline, but this seems to work only for TrueType fonts. Is there a similar function for bitmap fonts, or does anyone know another method to create a HBITMAP from a single character ?

Thanks, Marc
0
Comment
Question by:parlando
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 200 total points
Comment Utility
First create memory DC by CreateCompatibleDC.
Then create compatible bitmap using CreateCompatibleBitmap with size as character sell. Select bitmap into DC. Draw character using DrawText or (Ext)TextOut on memory DC. Reselect old bitmap. Now you have character bitmap
0
 

Author Comment

by:parlando
Comment Utility
Comment added in C language section.
Would be euseless to keep the problem running in both sections :-)

Thanks again,
Marc
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

744 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

16 Experts available now in Live!

Get 1:1 Help Now