📄 cbasepixel.cpp
字号:
//
// CBasePixel.cpp
//
#include "CBasePixel.h"
///////////////////////////////////////////////////////////////////////
CBasePixel::CBasePixel()
{
m_TargetR = 0;
m_TargetG = 0;
m_TargetB = 0;
m_PixelSize = 1;
}
CBasePixel::~CBasePixel()
{
}
void CBasePixel::SetTargetColor(unsigned char inR, unsigned char inG, unsigned char inB)
{
m_TargetR = inR;
m_TargetG = inG;
m_TargetB = inB;
SideEffectColorChanged();
}
void CBasePixel::SetPixelSize(int inSize)
{
m_PixelSize = inSize;
}
unsigned char * CBasePixel::NextPixel(unsigned char * inCurrent)
{
return (inCurrent + m_PixelSize);
}
unsigned char * CBasePixel::NextNPixel(unsigned char * inCurrent, int inCount)
{
return (inCurrent + inCount * m_PixelSize);
}
void CBasePixel::ConvertByCover(unsigned char * inPixel)
{
}
void CBasePixel::ConvertByReverse(unsigned char * inPixel)
{
for (int i = 0; i < m_PixelSize; i++)
{
*inPixel = ~*inPixel;
// *inPixel = *inPixel ^ 0xff;
inPixel++;
}
}
void CBasePixel::SideEffectColorChanged(void)
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -