graytrans.h
来自「视频捕捉图片并进行灰度处理24真彩图像转换成8为灰度图像」· C头文件 代码 · 共 32 行
H
32 行
// GrayTrans.h: interface for the GrayTrans class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_GRAYTRANS_H__24A47F62_C4DB_4F69_BAE2_7233A2E91FB7__INCLUDED_)
#define AFX_GRAYTRANS_H__24A47F62_C4DB_4F69_BAE2_7233A2E91FB7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ImgCenterDib.h"
class GrayTrans:public ImgCenterDib
{
public:
int m_nBitCountOut;
unsigned char* m_pImgDataOut;
LPRGBQUAD m_lpColorTableOut;
private:
int m_imgWidthOut;
int m_imgHeightOut;
int m_nColorTableLengthOut;
public:
GrayTrans();
virtual ~GrayTrans();
GrayTrans(CSize size,int nBitCount,LPRGBQUAD lpColorTable,unsigned char *pImgData);
void ColorToGray();
CSize GetDimensions();
};
#endif // !defined(AFX_GRAYTRANS_H__24A47F62_C4DB_4F69_BAE2_7233A2E91FB7__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?