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

📄 diffusefilter.h

📁 visual c++数字图像与图形处理中的光盘内容
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////////
//
// DiffuseFilter.h: interface for the CDiffuseFilter class.
//
////////////////////////////////////////////////////////////////////////////////
// 版权所有(2002)
// Copyright(2002)
// 编写者: 向世明
// Author: Xiang Shiming


#ifndef _CDIFFUSEFILTER_H
#define _CDIFFUSEFILTER_H

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

class CDiffuseFilter  : public CImageAreaProcess
{
DECLARE_DYNAMIC(CDiffuseFilter)
public:
	CDiffuseFilter();
	virtual ~CDiffuseFilter();

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

	#ifdef _DEBUG
	virtual void Dump(CDumpContext& dc) const;
	virtual void AssertValid() const;
	#endif
protected:
	PIXELCOLORRGB Diffuse(BYTE *pbyRed, BYTE *pbyGreen, BYTE *pbyBlue,  int nNum);
	PIXELCOLORRGB FilterPixelOnBorder(LPBYTE lpbyBitsSrc32, int x, int y, int nScanWidth, int nScanHeight);
	PIXELCOLORRGB FilterPixelInner(LPBYTE lpbyBitsSrc32,  int x,  int y,  int nScanWidth,  int nScanHeight);
};

#endif 

⌨️ 快捷键说明

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