I have two class Mainwindow and Mini_Screen which derive from Window class.i want to access image variable to another class and how video stream.here is the code
public partial class MainWindow : Window
{
public static Image<Bgr, Byte> contour_Frame;
public void Bu_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
FinalFrame = new VideoCaptureDevice(CaptureDevice[Camera_ComboBox.SelectedIndex].MonikerString);
FinalFrame.NewFrame += new NewFrameEventHandler(FinalFrame_NewFrame);
FinalFrame.Start();
}
void FinalFrame_NewFrame(object sender, NewFrameEventArgs eventArgs)
{
Imgbox1.Image = skin;
}
}
second class
public partial class Mini_Screen : Window
{
public Mini_Screen()
{ InitializeComponent();
Imgbox2.Image = MainWindow.emgu_img;
}
}
i did that but i just see one capture image in Imgbox2. I want video streaming like in imgbox1. Plz Help, i hope you understand my question