文件名称:bmp
介绍说明--下载内容均来自于网络,请自行研究使用
在用vc做程序时候,经常需要把输出的文本和图形保存到位图文件,当然可以有现成的控件来实现,但总不能如自己所愿,还是自己动手写吧!如下图:
一、实现方法
要把文本和图形保存到位图文件,只要对掌握位图结构有一定的了解,一切都ok呢。先必须要创建内存设备环境,然后内存设备环境创建的DIB区域,别忘了还要创建个CBitmap对象,CBitmap对象必须和DIB区域关联起来,把CBitmap对象选择到当前设备环境,然后在当前设备环境输出文本和图形就可以了。
-Vc procedures used to do often need to output text and graphics preservation plan in place, and of course, can have ready-made controls to achieve, but not as his own wish, or write your own hands! The following graph: First, the realization method of text and graphics to put in place plans to preserve documents, as long as the structure of the master bitmap have a certain understanding, everything is ok then. First need to create a memory device environment, and then memory devices DIB created regional environment, do not forget to also create a CBitmap object, CBitmap object must be associated with DIB region to choose CBitmap object to the current equipment, the environment, and then in the current environment equipment output text and graphics on it.
一、实现方法
要把文本和图形保存到位图文件,只要对掌握位图结构有一定的了解,一切都ok呢。先必须要创建内存设备环境,然后内存设备环境创建的DIB区域,别忘了还要创建个CBitmap对象,CBitmap对象必须和DIB区域关联起来,把CBitmap对象选择到当前设备环境,然后在当前设备环境输出文本和图形就可以了。
-Vc procedures used to do often need to output text and graphics preservation plan in place, and of course, can have ready-made controls to achieve, but not as his own wish, or write your own hands! The following graph: First, the realization method of text and graphics to put in place plans to preserve documents, as long as the structure of the master bitmap have a certain understanding, everything is ok then. First need to create a memory device environment, and then memory devices DIB created regional environment, do not forget to also create a CBitmap object, CBitmap object must be associated with DIB region to choose CBitmap object to the current equipment, the environment, and then in the current environment equipment output text and graphics on it.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
bmp.doc