Page 1 of 1

Bitmap TextOut Font

Posted: Sat Jun 17, 2006 2:25 pm
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

Re: Bitmap TextOut Font

Posted: Sat Jun 17, 2006 2:51 pm
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

Posted: Sat Jun 17, 2006 3:45 pm
by Dave Zowasky
That works perfect.

Thanks Much for your help!!

:D