granulationfilter.h

来自「visual c++数字图像与图形处理中的光盘内容」· C头文件 代码 · 共 42 行

H
42
字号
/////////////////////////////////////////////////////////////////////////////////
//
// GranulationFilter.h: interface for the CGranulationFilter class.
//
////////////////////////////////////////////////////////////////////////////////
// 版权所有(2002)
// Copyright(2002)
// 编写者: 向世明
// Author: Xiang Shiming


#ifndef _CGRANULATEFILTER_H
#define _CGRANULATEFILTER_H

#ifndef _CIMAGEPROCESS_H
#include "ImageAreaProcess.h"
#endif


class CGranulationFilter : public  CImageAreaProcess
{
DECLARE_DYNAMIC(CGranulationFilter)

public:
	CGranulationFilter();
	virtual ~CGranulationFilter();

public:

	BOOL Filter(LPBYTE lpbyBits32,  int x,  int y,  int nWidth,  int nHeight,  int nScanWidth,  int nScanHeight);
	void SetGranulationSize(int nWidth, int nHeight);

	#ifdef _DEBUG
	virtual void Dump(CDumpContext& dc) const;
	virtual void AssertValid() const;
	#endif
protected:
	void Granulate(LPBYTE lpbyBitsSrc32,  int x,  int y,  int nWidth,  int nHeight,  DWORD dwWidthBytes, LPBYTE lpbyBitsDst32);
};

#endif 

⌨️ 快捷键说明

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