scan_bmp.h

来自「北京航空航天大学指纹识别系统源码」· C头文件 代码 · 共 47 行

H
47
字号
// Scan_Bmp.h: interface for the Scan_Bmp class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SCAN_BMP_H__C7D813C1_860D_11D3_BB8D_0000B4336158__INCLUDED_)
#define AFX_SCAN_BMP_H__C7D813C1_860D_11D3_BB8D_0000B4336158__INCLUDED_

#include <vfw.h>
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

class Scan_Bmp  
{
public:
	Scan_Bmp();
	virtual ~Scan_Bmp();
public:
	void ExtendSmallBmp(Scan_Bmp *bmp);
	void EnHance(short gray=4);
	void CopyPart(Scan_Bmp& bmp,POINT from,short width,short height);
	void ChangeLightAndContrast(short light,short contrast);
	void Copy(Scan_Bmp& bmp);
	void Resample(Scan_Bmp &bmp, int width, int height);
	void ScaleImage(Scan_Bmp &bmp, int width, int height);
	BOOL ReadFile(CString filename);
	BOOL WriteFile(CString filename);
	void DrawDib(CDC *pDC, short width, short height);
	void ReAlloc();
	void Reverse();
	void ChangeLight(unsigned short light);
	void ChangeContrast(short contrast);
	void InitRGB();
	int m_Width;
	int m_Height;
	void DrawDib(CDC* pDC, int scale = 4, WORD x = 0, WORD y = 0);
	//////////no known
	HANDLE			m_Bmp_hBuf;
	BYTE			*m_Bmp_pBmpValue;
	BITMAPINFOHEADER *m_Bmp_pBmpInfo;
	RGBQUAD			*m_Bmp_pRGB;
	HDRAWDIB		m_Bmp_hDrawDib;
	BYTE			*m_Bmp_pHuge;
};

#endif // !defined(AFX_SCAN_BMP_H__C7D813C1_860D_11D3_BB8D_0000B4336158__INCLUDED_)

⌨️ 快捷键说明

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