m_hCapWnd:=capCreateCaptureWindow(Pchar('VideoTest'),
WS_CHILD or WS_VISIBLE,0,0,AviPanel.width,AviPanel.height,AviPanel.Handle,0);if(capDriverConnect(m_hCapWnd,0)) then
begin
capPreviewRate(m_hCapWnd,30);
capPreview(m_hCapWnd,true);
dwSize:=capGetVideoFormatSize(m_hCapWnd);
capGetVideoFormat(m_hCapWnd,@setBmp, dwSize);
setBmp.bmiHeader.biWidth:=352;
setBmp.bmiHeader.biHeight:=288;
capSetVideoFormat(m_hCapWnd,@setBmp,dwSize);
end;不管我换到哪一路视频capDriverConnect(m_hCapWnd,0)始终为fasle哪位大侠帮我指点一下阿
WS_CHILD or WS_VISIBLE,0,0,AviPanel.width,AviPanel.height,AviPanel.Handle,0);if(capDriverConnect(m_hCapWnd,0)) then
begin
capPreviewRate(m_hCapWnd,30);
capPreview(m_hCapWnd,true);
dwSize:=capGetVideoFormatSize(m_hCapWnd);
capGetVideoFormat(m_hCapWnd,@setBmp, dwSize);
setBmp.bmiHeader.biWidth:=352;
setBmp.bmiHeader.biHeight:=288;
capSetVideoFormat(m_hCapWnd,@setBmp,dwSize);
end;不管我换到哪一路视频capDriverConnect(m_hCapWnd,0)始终为fasle哪位大侠帮我指点一下阿
解决方案 »
- 如何去除读取数据库中的空格
- 高手请进,关于参数传递的问题!
- 关于delphi调用dll的问题
- 高手请指点delphi嵌入汇编的小问题(立即给分,不拿白不拿呀)
- 请问编程高手:安装程序中 ini文件是如何写成的,注册又是如何写成的??? 谢谢那位热心朋友耐心给我讲解好么?
- 自绘控件中有VCL成员(如TEdit),能不能把成员的属性公布出来?如何做?
- 关于枚举做数组上下标的问题?
- delphi下如何实现广播数据的收发
- 谁能提供一个比较好用的 标尺 的控件,告诉我哪里下载就行,马上就给分。
- 如何做图象的预览?
- 高分求救:VFW视频采集问题,始终采集不到图像
- Delphi7中无法定义PSafeArray?
我弄不明白到底是为什么连不上啊