A while ago i was working on a project in vb that required the use of the webcam. After some research i found that to do this i would have to make some win32 API calls. Additionally i came across this handy class for interfacing with the webcam (http://www.vbforums.com/showthread.php?p=2048466) .
So, all good. Well, not quite the webcam class that i obtained did not include a very good way of grabbing the webcam’s frame. It did have one but it was captured basically by taking a screen capture. I decided to improve on this class and add a function that allows the webcam to be accessed without having to have the application maximized.
So, here it is http://pastebin.bjetdesign.com/index.php?q=104 (to view it)
Or download it here
A handy webcam interface class with a added getBitmap function
Here’s a program i created that uses this class, its a webcam tracking program





