Try this
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WinFormCharpWebCam;
using System.IO;
namespace Photosaved
{
public partial class Form1 : Form
{
WebCam webcam;
public Form1()
{
InitializeComponent();
webcam = new WebCam();
webcam.InitializeWebCam(ref pictureBox1);
}
private void button1_Click(object sender, EventArgs e)
{
webcam.Start();
}
private void button3_Click(object sender, EventArgs e)
{
String FilePath = "E:\\Office Work\\Window Aplication\\imagelocation\\Photosaved\\Photosaved\\Image\\";
pictureBox2.Image = pictureBox1.Image;
FileStream fstream = new FileStream(FilePath, FileMode.Create, FileAccess.Write);
image.Save(fstream, System.Drawing.Imaging.ImageFormat.Jpeg);
fstream.Close();
}
}
}