:: AForge.NET Framework :: Articles :: Forums ::

hello world level frame capture

Forum to discuss AForge.NET Framework, its features, API, how-tos, etc.

hello world level frame capture

Postby billk » Wed Aug 01, 2018 4:47 pm

I am trying to get anything running, even a simple frame capture. Player seems like the most relevant sample. I would like to add a frame capure to it.
Is this what is needed? if so, how do I generate an event, or whatever is needed to call this procedure?

private void video_NewFrame( object sender, NewFrameEventArgs eventArgs )
// get new frame
Bitmap bitmap = eventArgs.Frame;
// process the frame
Posts: 1
Joined: Wed Aug 01, 2018 4:43 pm

Re: hello world level frame capture

Postby andrew.kirillov » Thu Aug 02, 2018 6:59 am

Event will be generated by video source. Check sample again and see how video source is created. Also you can have a look a documentation.
With best regards,

Interested in supporting AForge.NET Framework?
User avatar
Site Admin, AForge.NET Developer
Posts: 3453
Joined: Fri Jan 23, 2009 9:12 am
Location: UK

Return to AForge.NET Framework