Exemple #1
0
 /// <summary>
 /// 弹出视频格式设置对话框
 /// </summary>
 public void SetCaptureFormat()
 {
     AviCapture.CAPDRIVERCAPS caps = new AviCapture.CAPDRIVERCAPS();
     AviCapture.SendMessage(lwndC, AviCapture.WM_CAP_GET_CAPS, AviCapture.SizeOf(caps), ref  caps);
     if (caps.fHasDlgVideoSource)
     {
         AviCapture.SendMessage(lwndC, AviCapture.WM_CAP_DLG_VIDEOFORMAT, 0, 0);
     }
 }
 /// <summary>
 /// 弹出色彩设置对话框
 /// </summary>
 public void SetCaptureSource()
 {
     AviCapture.CAPDRIVERCAPS caps = new AviCapture.CAPDRIVERCAPS();
     AviCapture.SendMessage(lwndC, AviCapture.WM_CAP_GET_CAPS, AviCapture.SizeOf(caps), ref caps);
     if (caps.fHasDlgVideoSource)
     {
         AviCapture.SendMessage(lwndC, AviCapture.WM_CAP_DLG_VIDEOSOURCE, 0, 0);
     }
 }