jpeg.h
来自「程序在visual c++环境下实现了图像按照输入参数进行平移旋转和在水平垂直方」· C头文件 代码 · 共 60 行
H
60 行
//
//
//
/////////////////////////////////////////////////////////////
#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 + =
减小字号Ctrl + -
显示快捷键?