Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 // 抓图
 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);
 }