Click here to Skip to main content
15,662,580 members

Comments by bborac (Top 3 by date)

bborac 15-Apr-14 4:25am View    
//eventhandler if new frame is ready
private void video_NewFrame(object sender, NewFrameEventArgs eventArgs)
this.currentImage = (Bitmap)eventArgs.Frame.GetThumbnailImage(frameSize.Width, frameSize.Height, new Image.GetThumbnailImageAbort(imageconvertcallback), IntPtr.Zero);
bborac 15-Apr-14 4:24am View    
And by the way, RAM usage increases every second by the app to a threshold of 500MB, after that it gets garbage collected, RAM usage decreases again to 40,000K and increases again...
The problem is the following method:
bborac 12-Apr-14 9:23am View    
Don't like the looping stuff.
The camera.start()-Method takes on my computer about 2s to be ready, after that time period I could safely take pictures.

//start listening for windows messages
captured_image = camera.currentImage;