Thursday, May 7, 2009

Embeding String as overlay on a bitmap

want to write your own string as an overlay of a given bitmap?
Use this code



CFont* pFont = CFont::FromHandle((HFONT) GetStockObject(DEFAULT_GUI_FONT));
CFont* pOldFont = dc.SelectObject(pFont);
dc.SetTextColor(RGB(255,255,255));
dc.SetBkMode(TRANSPARENT);
dc.TextOut(500,397,"String");
dc.SelectObject(pOldFont);

0 תגובות:

Post a Comment

 
Home | About | Link | Link
Simple Proff Blogger Template Created By Herro | Inspiring By Busy Bee Woo Themes