用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

76 lines
1.7 KiB

#ifndef IMAGE3D_H_CBBEE65C_14A5_4811_9AED_65F25D658C01
#define IMAGE3D_H_CBBEE65C_14A5_4811_9AED_65F25D658C01
#ifdef IMAGE3D_EXPORTS
#define IMAGE3D_API __declspec(dllexport)
#else
#ifdef USE3DIMAGE_DLL
#define IMAGE3D_API __declspec(dllimport)
#else
#define IMAGE3D_API
#endif
#endif
namespace IMAGE3D
{
struct PARAM3DTRANSFORM
{
int nRotateX;
int nRotateY;
int nRotateZ;
int nOffsetZ;
};
struct Quad;
class IMAGE3D_API C3DTransform
{
public:
C3DTransform()
{
m_pSrcBits = 0;
Initialize();
}
virtual ~C3DTransform();
public:
//************************************
// Method: Render
// FullName: IMAGE3D::C3DTransform::Render
// Access: public
// Returns: void
// Qualifier:
// Parameter: const PARAM3DTRANSFORM & param3d:3D变换参数
//************************************
void Render(const PARAM3DTRANSFORM & param3d);
//************************************
// Method: SetImage
// FullName: IMAGE3D::C3DTransform::SetImage
// Access: public
// Returns: BOOL
// Qualifier:
// Parameter: LPBYTE pSour : 源图缓冲区
// Parameter: LPBYTE pDest : 输出缓冲区
// Parameter: int nWid :源图宽度
// Parameter: int nHei :源图高度
// Parameter: int nBitsPixel:像素深度,只支持24及32位两种格式
//************************************
BOOL SetImage(LPBYTE pSour,LPBYTE pDest,int nWid,int nHei,int nBitsPixel);
protected:
void Initialize();
void GetQuadByAnimateValue(int nDegreeX, int nDegreeY, int nDegreeZ, int nZOffset, Quad* pOut);
protected:
int m_nSrcWndWidth,m_nSrcWndHeight;
int m_nBitsPixel;
int m_nSrcPitch;
LPBYTE m_pSrcBits;
LPBYTE m_pDstBits;
};
}
#endif // IMAGE3D_H_CBBEE65C_14A5_4811_9AED_65F25D658C01