You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# pragma once
# include "stdafx.h"
// 包含情报结构体文件
# include "QBStru.h"
// 全局函数 作者:王家星 2014/10/24
// 功能:获取软件当前工作目录
extern CString GetSoftwareCurrentDirectory ( ) ;
//功能:在文件夹中查找文件,看其是否存在
//输入: 文件或文件夹名称strDir
//返回值: true——存在该文件或文件夹
// false——不存在该文件或文件夹
extern bool SearchDirectory ( const CString & strDir ) ;
// 功能:克隆情报数据
// 输入:
// 1.src: 输入情报数据
// 2.dst: 输出情报数据
// 输出: 返回复制结果
extern void CloneQBData ( const QBStru & src , QBStru & dst ) ;
// 功能:克隆图像数据
// 输入:
// 1.src: 输入情报数据
// 2.dst: 输出情报数据
// 输出: 返回复制结果
extern void CloneImgStru ( const ImgStru & src , ImgStru & dst ) ;
// 功能:释放情报数据
// 输入:
// 1.qbData: 情报数据
// 输出: 无
extern void ReleaseQBData ( QBStru * pQBData ) ;
// 功能:旋转并平移一个坐标点
// 输入:
// 1.src: 源点坐标
// 2.angle: 旋转角度 垂直指上为0, 顺时针旋转为正, 逆时针旋转为负
// 3.shift: 平移量
// 输出: 返回旋转并平移后的点坐标
extern POINT RotateShiftPoint ( const POINT & src , double angle , const POINT & shift ) ;
// 功能:垂直+水平反转 ImgStru中的 图像数据
// 输入: img, 图像数据反转前
// 输出: img, 图像数据反转后
extern void FlipImgStru ( ImgStru * img ) ;