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

📄 dib.h

📁 可以对人脸进行识别和拍短,也可以同时检测
💻 H
字号:
// Dib.h: interface for the CDib class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DIB_H__3E3EC543_A4C5_11D0_B4B0_0000B43BAF07__INCLUDED_)
#define AFX_DIB_H__3E3EC543_A4C5_11D0_B4B0_0000B43BAF07__INCLUDED_

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

#include <vfw.h>
#pragma comment(lib,"vfw32.lib")

class CDib : public CObject  
{
public:
	CDib();
	virtual ~CDib();

//Attributes
public:
	BYTE    *GetBits();
	CSize	 GetSize();
	LONG	 GetWidth();
	LONG	 GetHeight();
	int      GetBiBitCount();
	BOOL     IsValid()  { return(m_hDrawDib!=NULL); }
	operator HDRAWDIB() { return m_hDrawDib; }

//operations
public:
	BOOL Open(const char *pzFileName);
	BOOL Save(const char *pzFileName);
	void Draw(CDC *pDC,int nWidth, int nHeight);
	void Close();

//public parameters
	BYTE		*m_pDibBits;
//implementation
public:
	BYTE		*m_pDib;
	HDRAWDIB	m_hDrawDib;

	BITMAPFILEHEADER bmpFileHeader;
};
#endif // !defined(AFX_DIB_H__3E3EC543_A4C5_11D0_B4B0_0000B43BAF07__INCLUDED_)

⌨️ 快捷键说明

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