基于VC的BMP位图伸缩显示  被引量:1

Bitmap's flexible display based on VC

在线阅读下载全文

作  者:夏萍[1] 潘宏侠[1] 王芳[2] 

机构地区:[1]中北大学,太原030051 [2]安徽工业大学,马鞍山243002

出  处:《电子测试》2009年第12期27-30,共4页Electronic Test

摘  要:本文首先介绍了BMP的文件结构,然后采用加载资源位图,调用视图类中的成员函数OnDraw(CDC*pDC)的方法来显示位图。但该方法缺乏灵活性,所显示的图片的大小也有一定的限制。为实现图片的伸缩显示,提出了在实际设备中显示位图的思路。遵循这个思路,在基于MFC的VC程序中给出具体实例,即通过调用MFC的设备环境类CDC的成员函数BitBlt()或成员函数StretchBlt()来实现BMP位图的缩放显示。BMP is the abbreviation of BitMap,and it's a format that all graphic image software support in the Windows environment. This article describes the structure of the BMP first, and then displays the bitmap by loading the resource bitmap and calling the classview's member function OnDraw (CDC * pDC).But the method lacks flexibility,and the size of the displayed image also has certain limitation. So the idea of displaying a bitmap in the actual equipment is proposed to achieve the stretching picture's show. Follow this idea, giving a specific example in the VC program based on MFC,that is,calling the CDC member function BitBlt() or StretchBlt () of MFC device class to achieve BMP's flexible display.

关 键 词:BMP 位图:VC++ 伸缩显示 

分 类 号:TP391.41[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象