pictureBox1.Image
is Image
type. It can handle saving on its own. It does handle saving when used from PictureBox
too, notice how you call Save()
method on Image
property and not on pictureBox
instance.
WebCam camera = new WebCam();
camera.Connect();
Image image = camera.GetBitmap();
image.Save(@"c:\image1 " + ".Jpeg", ImageFormat.Jpeg);