예제 #1
0
파일: HkDvr.cs 프로젝트: Strongc/sencond
 public int SDK_CapturePicture(int lChannel, string fileName)
 {
     HCNetSDK.NET_DVR_JPEGPARA jpegPara = new HCNetSDK.NET_DVR_JPEGPARA();
        jpegPara.wPicQuality = 0;
        jpegPara.wPicSize = 0;
        bool ret = HCNetSDK.NET_DVR_CaptureJPEGPicture(_user_id, lChannel, ref jpegPara, fileName);
        if (!ret) return -1;
        return 0;
 }
예제 #2
0
파일: HkDvr.cs 프로젝트: Strongc/sencond
 // 抓图
 public bool CapturePicture(uint channel, string fileName)
 {
     HCNetSDK.NET_DVR_JPEGPARA jpegPara = new HCNetSDK.NET_DVR_JPEGPARA();
        jpegPara.wPicQuality = 0;
        jpegPara.wPicSize = 0;
        return HCNetSDK.NET_DVR_CaptureJPEGPicture(_user_id, (int)channel, ref jpegPara, fileName);
 }