
Untitled
By: a guest on
Jun 9th, 2012 | syntax:
None | size: 0.44 KB | hits: 23 | expires: Never
Capture image from laptop camera [closed]
ImageViewer viewer = new ImageViewer(); //create an image viewer
Capture capture = new Capture(); //create a camera captue
Application.Idle += new EventHandler(delegate(object sender, EventArgs e)
{ //run this until application closed (close button click on image viewer)
viewer.Image = capture.QueryFrame(); //draw the image obtained from camera
});
viewer.ShowDialog(); //show the image viewer