Solved

Bitmap from character

Posted on 1998-01-05
2
554 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 200 total points
ID: 1409853
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
ID: 1409854
Comment added in C language section.
Would be euseless to keep the problem running in both sections :-)

Thanks again,
Marc
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…

751 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