📄 jpeg.h
字号:
//
//
//
/////////////////////////////////////////////////////////////
#ifndef AFX_JPEG_H_001
#define AFX_JPEG_H_001
#include "CDibImage.h"
class CJpeg
{
public:
CJpeg();
virtual ~CJpeg();
public:
//funtion
BOOL Load(LPCTSTR lpstrFileName);
BOOL Save(LPCTSTR lpstrFileName);
//
void OuttoDC(CDC* dc);
// get error string
CString GetErrorString();
UINT uWidth,uHeight;
private:
//
BYTE* ReadJPEGFile(LPCSTR lpstrFileName, UINT *uWidth, UINT *uHeight);
//
BYTE* MakeDwordAlign(BYTE *dataBuf, // input buf
UINT widthPix, // input pixels
UINT height, // lines
UINT *uiOutWidthBytes); // new width bytes
//
void FreeBuffer(BYTE *Buffer);
//
BOOL VertFlipBuf(BYTE * inbuf,
UINT widthBytes,
UINT height);
BOOL BGRFromRGB(BYTE *buf,
UINT widthPix,
UINT height);
// data
CString m_strJPEGError;//
//data
private:
BYTE *lpBuffer;
};
#endif
//AFX_JPEG_H_001
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -