On Aug 22, 12:42 pm, maxpa1n <Max.Hoel...@gmx.dewrote:
On 22 Aug., 09:34, slack.vic...@gmail.com wrote:
Hi guys, what i'm trying to do is do frame processing with the
possibility of the app to not be in focus.What happens if the capture
window gets hidden is that no more frames are sent to the
callback...I've tried fyield to no avail.I'd greatly appreciate it if
someone could put me on the right path with this one.
vic.
Simply stop capturing the window if it has the state of beeing
minimized.
I am not sure i you are using .NET so can't give you an example =)
Well, no, i've made a C# wrapper around the avicap32.dll...anyway, the
solution to keep frame processing going in the background or when the
capture window is hidden is to make a timer to the desired framerate
and manually grab frames with the WM_CAP_GRAB_FRAME message, save them
in the clipboard with WM_CAP_EDIT_COPY and grab them back into a
bitmap with
(Bitmap)Clipboard.GetDataObject().GetData(DataForm ats.Bitmap);
thanks anyways,
vic.