tags:

views:

218

answers:

1

how to print Text on HBITMAP?

how to attach HBITMAP into CImage Object?

A: 

CImage::Attach allows you to set the HBITMAP of the CImage object.

To draw text on the bitmap, create a device context object:

CDC::FromHandle (CImage::GetDC ())

then use the CDC::TextOut function to draw the text (or any of the other text drawing functions).

Skizz

Skizz