Provide some controls for WinForms and WPF to show/record/snapshot video from a webcam using AForge.NET.
Install using Nuget Install-Package WebcamCapturer.Core or download latest release build it yourself!
If you also want to use the built-in control, you also need to install:
Install-Package WebcamCapturer.Controls.WinFormsif working with WinFormsInstall-Package WebcamCapturer.Controls.WPFif working with WPF
For now the library exposes an IWebcamCapturerView interface and a WebcamCapturerPresenter, both reside in WebcamCapturer.Core.
If you use the built-in controls, instantiate a new WebcamCapturerPresenter, inject the correct view (Winforms or WPF) to the presenter.
If you want to use your own form, your control has to implement the IWebcamCapturerView.
This way it can be injected into the presenter.
var view = new WebcamCaptureForm();
var presenter = new WebcamCapturePresenter(view);
presenter.Show();var view = new WebcamCapturerWindow()
var presenter = new WebcamCapturePresenter(view);
presenter.Show();