开启摄像头E源码
E语言开启摄像头源码,易语言.版本2.程序集窗口程序集1.程序集变量hWndC,整数型.子程序_视频窗口_创建完毕.局部变量hwnd,整数型hwnd=视频窗口.取窗口句柄()hWndC=capCreateCaptureWindow(“MyOwnCaptureWindow”,位异或(#WS_CHILD,#WS_VISIBLE),2,2,320,240,hwnd,0)SendMessage(hWndC,#WM_CAP_SET_CALLBACK_VIDEOSTREAM,0,0)SendMessage(hWndC,#WM_CAP_SET_CALLBACK_ERROR,0,0
用户评论