We're building a brand new version of the site, and we'd love to hear your ideas
Members
Technology Zones
IBM Learning Center
Articles
Hosted By
Info
|
[1988] Capture Video
Last post 09-02-2007 8:16 PM by easytec. 20 replies.
-
01-01-1999 12:00 AM
|
|
Advertisement
|
|
-
-
-
-
-
-
-
-
-
-
-
-
tsiconsultants


- Joined on 03-11-2005

- Points 15
|
capturing Webcam when minimized
I have a problem and cannot figure out a workaround, possibly something to do with "overlay"...
I use avicap32.dll to capture images from Webcam,
SendMessage(Cam1Hwnd, WM_CAP_EDIT_COPY, 0, 0)
'Clipboard.SetDataObject(SendMessage(Cam1Hwnd, WM_CAP_EDIT_COPY, 0, 0))
'SendMessage(Cam1Hwnd, WM_CAP_GRAB_FRAME_NOSTOP, 0, 0)
data = Clipboard.GetDataObject()
If data.GetDataPresent(GetType(System.Drawing.Bitmap)) Then
bmap = CType(data.GetData(GetType(System.Drawing.Bitmap)), Image)
My Question: When CaptureWindow is minimized, or overlayed by another Window (from application or MS application) then I noticed that the Captureto Clipboard does not work, the clipboard gets updated only when
at least a fraction of the capture screen is visible.
In summary, if capturewindow is minimized, or fully covered by another window, images are not captured, but if only 2 lines (pixels) are visible, the whole capture window is copied correctly...
Any help would be appraciated, I read it might be a limitation of avicap32.dll, but I am hoping that there is
some kind of workaround.
Regards..
|
|
-
-
-
|
Search
Code Samples
New Members
|