文件名称:showbitmap
介绍说明--下载内容均来自于网络,请自行研究使用
位图装入、显示的c++类。
使用方法:
1 构造类的一个实例对象:
空实例 CDIB bmp()
用资源号构造 CDIB bmp(nResID)
用文件构造 CDIB bmp("PATH//Filename.bmp")
2 若1步构造的是空实例对象,则须装入位图:
从文件装入 BOOL bmp.LoadFromFile("PATH//Filename.bmp")
从资源装入 BOOL bmp.LoadFromResource(UINT nResID)
3 画位图图象
Draw(CDC* pDC,目标图左上角x&y坐标,长&宽,原图象左上角x&y坐标)
Draw(CDC* pDC,目标图左上角x&y坐标)
Draw(CDC* pDC)
Stretch(CDC* pDC, 目标图左上角x&y坐标,长&宽,原图像左上角x&y坐标,长&宽)
注: pDC的获取: CDC *pDC=GetDC() -bitmap loaded, shows the category c. Use : a structural example of a type of object : Air examples Bitmap bmp () with the resources, structure Bitmap bmp (nResID) document structure with CD IB bmp ( "PATH// Filename.bmp") if a two-step structure of the object is empty examples , must be loaded bitmap : BOOL loaded from the file bmp.LoadFromFile ( "PATH// Filenam e.bmp ") from the resource loading BOOL bmp.LoadFromResource (UIN T nResID) three paintings Bitmap Draw (CDC* pDC, objectives map upper left corner x
使用方法:
1 构造类的一个实例对象:
空实例 CDIB bmp()
用资源号构造 CDIB bmp(nResID)
用文件构造 CDIB bmp("PATH//Filename.bmp")
2 若1步构造的是空实例对象,则须装入位图:
从文件装入 BOOL bmp.LoadFromFile("PATH//Filename.bmp")
从资源装入 BOOL bmp.LoadFromResource(UINT nResID)
3 画位图图象
Draw(CDC* pDC,目标图左上角x&y坐标,长&宽,原图象左上角x&y坐标)
Draw(CDC* pDC,目标图左上角x&y坐标)
Draw(CDC* pDC)
Stretch(CDC* pDC, 目标图左上角x&y坐标,长&宽,原图像左上角x&y坐标,长&宽)
注: pDC的获取: CDC *pDC=GetDC() -bitmap loaded, shows the category c. Use : a structural example of a type of object : Air examples Bitmap bmp () with the resources, structure Bitmap bmp (nResID) document structure with CD IB bmp ( "PATH// Filename.bmp") if a two-step structure of the object is empty examples , must be loaded bitmap : BOOL loaded from the file bmp.LoadFromFile ( "PATH// Filenam e.bmp ") from the resource loading BOOL bmp.LoadFromResource (UIN T nResID) three paintings Bitmap Draw (CDC* pDC, objectives map upper left corner x
(系统自动生成,下载前可以参看下载内容)
下载文件列表
显示位图
........\Cdib.cpp
........\Cdib.dsp
........\Cdib.dsw
........\Cdib.h
........\Cdib.ncb
........\Cdib.opt
........\Cdib.plg
........\cdib.txt
........\Cdib.cpp
........\Cdib.dsp
........\Cdib.dsw
........\Cdib.h
........\Cdib.ncb
........\Cdib.opt
........\Cdib.plg
........\cdib.txt