X
xxjli
Unregistered / Unconfirmed
GUEST, unregistred user!
我已找到了一些利用摄像头捕获图像的资料,有两种,一种是
先定义const WM_CAP_START = WM_USER;
const WM_CAP_STOP = WM_CAP_START + 68;
.....
function capCreateCaptureWindowA(lpszWindowName : PCHAR;
dwStyle : longint;x : integer;y : integer;nWidth : integer;nHeight : integer;ParentWin : HWND;
nId : integer): HWND;
STDCALL EXTERNAL 'AVICAP32.DLL';
在利用sendmessage控制摄像头
如打开视频就用SendMessage(hWndC, WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0, 0);
SendMessage(hWndC, WM_CAP_SET_CALLBACK_ERROR, 0, 0);
SendMessage(hWndC, WM_CAP_SET_CALLBACK_STATUSA, 0, 0);等等
另一种方法是利用VFW,USE VFW后在调用VFW的函数,可一直没用找到VFW.PAS或VFW.DCU
谁能帮帮我,两种方法都行???
先定义const WM_CAP_START = WM_USER;
const WM_CAP_STOP = WM_CAP_START + 68;
.....
function capCreateCaptureWindowA(lpszWindowName : PCHAR;
dwStyle : longint;x : integer;y : integer;nWidth : integer;nHeight : integer;ParentWin : HWND;
nId : integer): HWND;
STDCALL EXTERNAL 'AVICAP32.DLL';
在利用sendmessage控制摄像头
如打开视频就用SendMessage(hWndC, WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0, 0);
SendMessage(hWndC, WM_CAP_SET_CALLBACK_ERROR, 0, 0);
SendMessage(hWndC, WM_CAP_SET_CALLBACK_STATUSA, 0, 0);等等
另一种方法是利用VFW,USE VFW后在调用VFW的函数,可一直没用找到VFW.PAS或VFW.DCU
谁能帮帮我,两种方法都行???