⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 winpic.h

📁 用在X86芯片的,嵌入式系统中的自动更新程序
💻 H
字号:
// WinPic.h: interface for the CWinPic class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_WINPIC_H__615D5706_D4C7_471A_BB32_57CFFDA770AF__INCLUDED_)
#define AFX_WINPIC_H__615D5706_D4C7_471A_BB32_57CFFDA770AF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define INIT_SUCCESS		1
#define FILE_OPEN_FAILED	2
#define FILE_ERROR			3

typedef struct
{
	BYTE rgbRed;
	BYTE rgbGreen;
	BYTE rgbBlue;
}RGBCOLOR;


class CWinPic  
{
public:
	CWinPic();
	virtual ~CWinPic();
public:
	int OpenFile(CString filepath);  //打开文件

public:
	void Move(long xoff,long yoff);
	void SuoFang1(float zoom1,float zoom2);
	void SuoFang(float zoom);
	RGBCOLOR* LoadImageData();       //载入图象数据 
	BITMAPFILEHEADER m_FileHeader;  //位图文件头
	

	BITMAPINFOHEADER m_InfoHeader;  //位图信息头
	long  m_BiWidth;    //图象宽度               
	long  m_BiHeight;   //图象高度
	int m_BibitCount;   //图象的位深度
    
	RGBCOLOR* m_ImageData;   //图象数据指针
private:
	bool ReadImageData_24();
	bool ReadImageData_16();
	bool ReadImageData_8();
	bool ReadImageData_4();
	bool ReadImageData_1();   //
	CFile* m_BmpFile;        //位图文件指针

};

#endif // !defined(AFX_WINPIC_H__615D5706_D4C7_471A_BB32_57CFFDA770AF__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -