如何通过vb来捕捉摄像头的图像

来源:百度知道 编辑:UC知道 时间:2024/05/28 17:15:08
如何通过vb来捕捉摄像头的图像,如能对摄像头图像的进行处理就更好了。
或者能提供通用的摄像头控制控件最好。

答案满意再20分
VB中如何实现USB摄像头拍照(VGA 640X480)
先谢了

使用API
Declare Function capCreateCaptureWindowA Lib "avicap32.dll" ( _
ByVal lpszWindowName As String, _
ByVal dwStyle As Long, _
ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Integer, _
ByVal hWndParent As Long, ByVal nID As Long) As Long
Declare Function capGetDriverDescriptionA Lib "avicap32.dll" ( _
ByVal wDriver As Integer, _
ByVal lpszName As String, _
ByVal cbName As Long, _
ByVal lpszVer As String, _
ByVal cbVer As Long) As Boolean