📄 brightnessprocess.h
字号:
/////////////////////////////////////////////////////////////////////////////////
//
// BrightnessProcess.h: interface for the CBrightnessProcess class.
//
////////////////////////////////////////////////////////////////////////////////
// 版权所有(2000)
// Copyright(2000)
// 编写者: 向世明
// Author: Xiang Shiming
#ifndef _CBRIGHTNESSPROCESS_H
#define _CBRIGHTNESSPROCESS_H
#ifndef _CIMGPTPROCESS_H
#include "ImagePointProcess.h"
#endif
class CBrightnessProcess : public CImagePointProcess
{
DECLARE_DYNAMIC(CBrightnessProcess)
public:
CBrightnessProcess();
virtual ~CBrightnessProcess();
public:
#ifdef _DEBUG
virtual void Dump(CDumpContext& dc) const;
virtual void AssertValid() const;
#endif
public:
BOOL ChangeBrightness(LPBYTE lpbyBits32,int x,int y,int nWidth,int nHeight,int nScanWidth,int nScanHeight);
void SetParam(int nPercentage,BYTE byLower,BYTE byUpper);
private:
void Retrieve(BYTE* pbyBlue,BYTE* pbyGreen,BYTE* pbyRed);
private:
int m_nPercentage; //亮度百分比
BYTE m_byUpper; //上阀值
BYTE m_byLower; //下阀值
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -