- 7
- 0
- 约1.12万字
- 约 20页
- 2017-10-06 发布于河南
- 举报
在vc中自建操作bmp位图文件的类(Classes that build BMP bitmap files in VC)
在vc中自建操作bmp位图文件的类(Classes that build BMP bitmap files in VC)
Classes that build BMP bitmap files in VC
Xian Wanshan Software Co. Ltd.
Jiatun
Programmers who have programming experience know that to make the applications interface beautiful and inevitable
Using lots of bitmaps. The popular visual programming tools now provide good use of bitmaps
The support, known as the three visual development tools of VB, VC, and Delphi, encapsulates bitmaps by encapsulating them
Objects provide good support for bitmap usage: VB provides two powerful objects:
PictureBox and Image make it very easy to load and display bitmaps by using them.
Delphi also provides a bitmap object: TImage, its function and usage, and VB
Image is similar. In VC, you use the device dependent class CDC and the GDI object class CBitmap to complete
Bitmap operation. However, in VC, using the CBitmap class must load the BMP bitmap into the resource,
Then, using the member functions of class CBitmap, use it to operate through member functions of the CDC class
It. There are two drawbacks to doing this: loading a bitmap into a resource causes an executable file to increase and is detrimental
In software release; can only use limited bitmap in the resource, unable to select other bitmap. And
The BMP bitmap file is saved in DIB (device independent bitmap), and the BMP bitmap is loaded into the resource
Is converted to DDB (device related bitmaps), and class CBitmap is a series of DDB operations
The API function is encapsulated and used with some limitations, so that DIB can be independent
Platform characteristics. To make up for two deficiencies in using a resource bitmap, you must use the BMP bitmap directly
Document. The example of VC provides a way to read and display BMP bitmap files, but use them
Quite troublesome. First, use the API function GlobalAlloc to allocate memory and create the HDIB bitmap
Handle, all operations can only read and write memory directly, and then through StrechDIBits and
The SetDIBsT
您可能关注的文档
- 卧龙酒,基因再造(Wolong wine, gene Reengineering).doc
- 卫星电视广播地面接收设施安装服务暂行办法(Interim Measures for the installation service of ground receiving facilities for satellite television broadcasting).doc
- 卫星电视接收机密码进入方法(Cipher access method for satellite television receiver).doc
- 卧式加工中心换刀机械手(Tool changing manipulator for horizontal machining center).doc
- 卫浴装修宝典(Bathroom decoration collection).doc
- 南邮13考研经验(South Post 13 postgraduate experience).doc
- 卫生统计学(Health Statistics).doc
- 卫生部基层医疗后年全部推行基本药物制度(Ministry of health primary medical treatment, the implementation of the basic drug system after the year).doc
- 印刷网点基础知识(Basic knowledge of printing outlets).doc
- 印度文化的特点及其精神支柱(The characteristics of India culture and its spiritual support).doc
最近下载
- 一种连续性混杂型废塑料无害化热解处置系统及处置方法.pdf VIP
- 糖画介绍课件.pptx VIP
- 湘教版八年级地理下册6.1《 东北地区的地理位置与自然环境》优质教案.docx
- 变态心理学(新教材).pdf VIP
- 农村饮水安全项目社会稳定风险评估与风险防控技术研究报告.docx
- 高三数学三角函数一轮复习.doc VIP
- 施工现场管理机构设置及职责.docx VIP
- 全真派道士申请书.docx VIP
- Panasonic松下 洗衣机 XQG100-V198,XQG100-V19M,XQG100-V19S,XQG100-L186,XQG100-L187,XQG100-L18M,XQG100-L188,XQG100-L18R,XQG100-L18S,XQG100-L1KR,XQG100-3X0R,XQG100-L18T 用户手册.pdf
- 心理健康热线接听操作指南.docx VIP
原创力文档

文档评论(0)