Bitmap TextOut Font

Post Reply
User avatar
Dave Zowasky
Posts: 125
Joined: Wed Oct 19, 2005 2:28 pm
Location: Hudson Ohio
Contact:

Bitmap TextOut Font

Post by Dave Zowasky »

Hello All,

Is there a way to control or set the text font being used in the
TextOut when I use it with a transparent bitmap?

Thanks
Dave Zowasky
Com1 Software, Inc.
http://www.com1software.com
information@com1software.com
330 653-3771
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Bitmap TextOut Font

Post by Enrico Maria Giordano »

Try something like

Code: Select all

oBmp:GetDC()
hOldFont = SelectObject( oBmp:hDC, oFont:hFont )
TextOut( ... )
SelectObject( oBmp:hDC, hOldFont )
oBmp:ReleaseDC()
EMG
User avatar
Dave Zowasky
Posts: 125
Joined: Wed Oct 19, 2005 2:28 pm
Location: Hudson Ohio
Contact:

Post by Dave Zowasky »

That works perfect.

Thanks Much for your help!!

:D
Dave Zowasky
Com1 Software, Inc.
http://www.com1software.com
information@com1software.com
330 653-3771
Post Reply