文件名称:TextOnBmp
介绍说明--下载内容均来自于网络,请自行研究使用
VC++在BMP图片上显示文本,是一个VC++窗口绘图的例子,JPG格式图片未做测试。显示文字主要是使用TextOut方法,完整的过程是:定义位图对象,加载背景位图,获取位图信息(图像宽度和高度),获取窗口客户区域,获取窗口设备上下文,定义一个内存设备上下文,CreateCompatibleDC方法创建与pDC兼容的设备上下文,选中位图对象在窗口中绘图,设置透明的背景模式,输出文本-VC++ to display text on the BMP picture window is a VC++ examples of graphics, JPG format picture without making tests. The main display text using TextOut method, a complete process: define bitmap objects, load background bitmap, get bitmap information (image width and height), access to the client area of a window, the window to get the device context, the definition of a memory device context, CreateCompatibleDC way to create a compatible device context pDC, select the bitmap object in the drawing window, set transparent background mode, the output text
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TextOnBmp\ReadMe.txt
.........\res\Bk.bmp
.........\...\TextOnBmp.ico
.........\...\TextOnBmp.rc2
.........\resource.h
.........\StdAfx.cpp
.........\StdAfx.h
.........\TextOnBmp.clw
.........\TextOnBmp.cpp
.........\TextOnBmp.dsp
.........\TextOnBmp.dsw
.........\TextOnBmp.h
.........\TextOnBmp.opt
.........\TextOnBmp.rc
.........\TextOnBmpDlg.cpp
.........\TextOnBmpDlg.h
.........\res
TextOnBmp