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

📄 cbasepixel.h

📁 简单的COM 实际例子 用法1
💻 H
字号:
//
// CBasePixel.h
//

#ifndef __CBasePixel_h__
#define __CBasePixel_h__

class CBasePixel
{
protected:
	unsigned char    m_TargetR;      // Target RGB
	unsigned char    m_TargetG;
	unsigned char    m_TargetB;
	unsigned char    m_PixelSize;    // Bytes per pixel

public:
	CBasePixel();
	~CBasePixel();

public:
	void SetTargetColor(unsigned char inR, unsigned char inG, unsigned char inB);
	void SetPixelSize(int inSize);
	int  GetPixelSize(void) {return m_PixelSize;}

	virtual void ConvertByCover(unsigned char * inPixel);
	// Using reverse operation, make converted pixel outstanding anyway
	virtual void ConvertByReverse(unsigned char * inPixel);
	unsigned char * NextPixel(unsigned char * inCurrent);  // Point to the next pixel
	unsigned char * NextNPixel(unsigned char * inCurrent, int inCount); 

protected:
	virtual void SideEffectColorChanged(void);
};

#endif // __CBasePixel_h__

⌨️ 快捷键说明

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