Пример #1
0
        public void StarKinescope(string path)
        {
            strFileName = path;
            string dir = path.Remove(path.LastIndexOf("//"));

            if (!File.Exists(dir))
            {
                Directory.CreateDirectory(dir);
            }
            int  hBmp = Marshal.StringToHGlobalAnsi(path).ToInt32();
            bool b    = VideoAPI.SendMessage(this.lwndC, VideoAPI.WM_CAP_FILE_SET_CAPTURE_FILE, 0, hBmp);

            b = VideoAPI.SendMessage(this.lwndC, VideoAPI.WM_CAP_SEQUENCE, 0, 0);
        }
Пример #2
0
 private bool capSetCallbackOnFrame(IntPtr lwnd, VideoAPI.FrameEventHandler lpProc)
 {
     return(VideoAPI.SendMessage(this.lwndC, VideoAPI.WM_CAP_SET_CALLBACK_FRAME, 0, lpProc));
 }
Пример #3
0
 public void set()
 {
     VideoAPI.SendMessage(this.lwndC, VideoAPI.WM_CAP_SET_SEQUENCE_SETUP, VideoAPI.SizeOf(Capparms), ref Capparms);
 }