Пример #1
0
 //快照
 private void btnSnapShots_Click(object sender, EventArgs e)
 {
     if (rbtnBMP.Checked)
     {
         VideoOperate.VCASaveAsBmpFile(intFlag, Application.StartupPath.Substring(0, Application.StartupPath.LastIndexOf("\\")).Substring(0, Application.StartupPath.Substring(0, Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\")) + "\\Photo\\" + DateTime.Now.ToFileTime() + ".bmp");
     }
     else
     {
         VideoOperate.VCASaveAsJpegFile(intFlag, Application.StartupPath.Substring(0, Application.StartupPath.LastIndexOf("\\")).Substring(0, Application.StartupPath.Substring(0, Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\")) + "\\Photo\\" + DateTime.Now.ToFileTime() + ".jpg", 100);
     }
 }