⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jpeg.h

📁 程序在visual c++环境下实现了图像按照输入参数进行平移旋转和在水平垂直方向上的镜像功能。
💻 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 + -