111,126
社区成员
发帖
与我相关
我的任务
分享
[DllImport("HCNetSDK.dll")]
public static extern bool NET_DVR_CaptureJPEGPicture(int lUserID, int lChannel, NET_DVR_JPEGPARA lpJpegPara, string sPicFileName);
string SavePicturePath = PicturePath + DateTime.Now.ToString("yyyy-MM-dd") + ".jpeg";
bool SaveJPEGPicture = CHNetSdk.NET_DVR_CaptureJPEGPicture(lUserID, DVRChannel, sNetDvrJpegPara, SavePicturePath);
char* pchPicturePath = CNHCommonAPI::UnicodeToANSI(wchPicturePath);
char chFileName[MAX_PATH];
ZeroMemory(chFileName, sizeof(chFileName));
sprintf_s(chFileName, "%s\\%s.jpeg", pchPicturePath, strTestRunningNumber.c_str());
BOOL bCaptureJPEGPicture = NET_DVR_CaptureJPEGPicture(lUserID, atoi(DVRChannel.c_str()), &sNetDvrJpegPara, chFileName);
char* pchPicturePath = CNHCommonAPI::UnicodeToANSI(wchPicturePath);
char chFileName[MAX_PATH];
ZeroMemory(chFileName, sizeof(chFileName));
sprintf_s(chFileName, "%s\\%s.jpeg", pchPicturePath, strTestRunningNumber.c_str());
BOOL bCaptureJPEGPicture = NET_DVR_CaptureJPEGPicture(lUserID, atoi(DVRChannel.c_str()), &sNetDvrJpegPara, chFileName);