WebcamCapturer.Controls
WebcamCapturer.Controls copied to clipboard
WinForm & WPF Controls to View/Capture from a webcam using AForge.NET
WebcamCapturer.Controls
Provide some controls for WinForms and WPF to show/record/snapshot video from a webcam using AForge.NET.
Installation
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
Usage
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.
WinForms
var view = new WebcamCaptureForm();
var presenter = new WebcamCapturePresenter(view);
presenter.Show();
WPF
var view = new WebcamCapturerWindow()
var presenter = new WebcamCapturePresenter(view);
presenter.Show();