www.pudn.com > final_6.rar > BitmapTexture.h


// BitmapTexture.h: interface for the CBitmapTexture class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_BITMAPTEXTURE_H__26CBD1F8_9B89_4B67_A88A_B4436B64A014__INCLUDED_) 
#define AFX_BITMAPTEXTURE_H__26CBD1F8_9B89_4B67_A88A_B4436B64A014__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "Texture.h" 
#include "Dib.h" 
 
class CBitmapTexture : public CTexture   
{ 
	DECLARE_SERIAL(CBitmapTexture); 
public: 
	long height;				// 图像高度 
	long width;					// 图像宽度 
	CDib *img;					// 图像数据 
	LPBYTE lpbyImgData32;		// 指向图像数据的指针 
	CString imgFile;			// 文件名 
	UINT imgID;					// 资源文件 
 
	CBitmapTexture(); 
	CBitmapTexture(CString filename); 
	CBitmapTexture(int PicNo); 
	virtual ~CBitmapTexture(); 
	void Serialize(CArchive &ar); 
 
	COLORREF GetColor(CGPoint pt); 
 
}; 
 
#endif // !defined(AFX_BITMAPTEXTURE_H__26CBD1F8_9B89_4B67_A88A_B4436B64A014__INCLUDED_)