imagegeometry.h

来自「visual c++数字图像与图形处理中的光盘内容」· C头文件 代码 · 共 58 行

H
58
字号
/////////////////////////////////////////////////////////////////////////////////
//
// ImageGeometry.h: interface for the CImageGeometry class.
//
////////////////////////////////////////////////////////////////////////////////
// 版权所有(2002)
// Copyright(2002)
// 编写者: 向世明
// Author: Xiang Shiming


#ifndef _CIG_H
#define _CIG_H

#ifndef _CIP_H
#include "ImageProcess.h"
#endif

class CImageGeometry;
class CImageGeometry : public  CImageProcess
{
DECLARE_DYNAMIC(CImageGeometry)
public:
	CImageGeometry();
	virtual ~CImageGeometry();

public:
	void SetQuality(DWORD dwQuality);

	#ifdef _DEBUG
	virtual void Dump(CDumpContext& dc) const;
	virtual void AssertValid() const;
	#endif

public:
	
	BOOL MirrorX(LPBYTE lpbyBitsSrc32, int x, int y, int nWidth, int nHeight, int nScanWidth, int nScanHeight, LPBYTE lpbyBitsDst32);
	BOOL MirrorY(LPBYTE lpbyBitsSrc32, int x, int y, int nWidth, int nHeight, int nScanWidth, int nScanHeight, LPBYTE lpbyBitsDst32);

	BOOL Rotate(LPBYTE lpbyBitsSrc32, int x, int y, int nWidth, int nHeight, int nScanWidth, int nScanHeight,LPBYTE lpbyBitsDst32,float fTheta,int nWidthImgDst,int nHeightImgDst);

	BOOL Rotate0(LPBYTE lpbyBitsSrc32, int x, int y, int nWidth, int nHeight, int nScanWidth, int nScanHeight, LPBYTE lpbyBitsDst32);
	BOOL Rotate180(LPBYTE lpbyBitsSrc32, int x, int y, int nWidth, int nHeight, int nScanWidth, int nScanHeight, LPBYTE lpbyBitsDst32);
	BOOL RotateCCW90(LPBYTE lpbyBitsSrc32, int x, int y, int nWidth, int nHeight, int nScanWidth, int nScanHeight, LPBYTE lpbyBitsDst32);
	BOOL RotateCW90(LPBYTE lpbyBitsSrc32, int x, int y, int nWidth, int nHeight, int nScanWidth, int nScanHeight,LPBYTE lpbyBitsDst32);

	BOOL Scale(LPBYTE lpbyBitsSrc32, int x, int y, int nWidth, int nHeight, int nScanWidth, int nScanHeight,LPBYTE lpbyBitsDst32,int nWidthImgDst,int nHeightImgDst);

protected:

	float Sinxx(float fx);
	PIXELCOLORRGB Interpolate(LPBYTE lpbySrcXY, int x, int y, float fu, float fv, int nScanWidth, int nScanHeight);

	DWORD m_dwQuality;
};

#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?