I am developing a program that is meant to get video from a capture device input and preview into two separate panels.
using DirectX.Capture;
So using the code below I am only able to view in one panel (panel1) and not both
public partial class myVideo : Form
{
private Capture capture = null;
private Filters filters = new Filters();
public myVideo()
{
InitializeComponent();
}
private void btnPreview_Click(object sender, EventArgs e)
{
Filter videoDevice = null;
capture = new Capture(filters.VideoInputDevices[0], null);
capture.PreviewWindow = panel1;
capture.PreviewWindow = panel2;
}
}
Kindly help me figure out how to have it in two panels instead of one.
(Visited 20 times, 1 visits today)