public Form1() { // // Required for Windows Form Designer support // InitializeComponent(); const int VIDEODEVICE = 0; // zero based index of video capture device to use const int VIDEOWIDTH = 640; // Depends on video device caps const int VIDEOHEIGHT = 480; // Depends on video device caps const int VIDEOBITSPERPIXEL = 24; // BitsPerPixel values determined by device _cam = new DSCapture(VIDEODEVICE, VIDEOWIDTH, VIDEOHEIGHT, VIDEOBITSPERPIXEL); _cam.VideoEventHandler += FrameUpdateHandler; _cam.Start(); }